io.quartz.http2.model

Members list

Type members

Classlikes

final case class ContentType(value: String) extends AnyVal

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class AnyVal
trait Matchable
class Any
Show all
object ContentType

An enumeration of HTTP Content-Types. This object provides constants for the standard Content-Types such as application/json, text/html, etc. Additional Content-Types can be added by creating a new instance of the ContentType class.

An enumeration of HTTP Content-Types. This object provides constants for the standard Content-Types such as application/json, text/html, etc. Additional Content-Types can be added by creating a new instance of the ContentType class.

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
object Cookie

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Cookie.type
final case class Cookie(name: String, value: String, domain: Option[String], path: Option[String], expires: Option[ZonedDateTime], maxAge: Option[Long], secure: Boolean, httpOnly: Boolean, sameSite: Option[String])

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Headers

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Headers.type
class Headers(val tbl: HashMap[String, List[String]])

An immutable collection of HTTP headers, represented as a mapping from header names to lists of values.

An immutable collection of HTTP headers, represented as a mapping from header names to lists of values.

Value parameters

tbl

a HashMap containing header names as keys and lists of values as associated values

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
sealed case class Method(name: String)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Method

An enumeration of HTTP methods. This object provides constants for the standard HTTP methods such as GET, POST, PUT, DELETE, etc.

An enumeration of HTTP methods. This object provides constants for the standard HTTP methods such as GET, POST, PUT, DELETE, etc.

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Method.type
sealed case class Request(connId: Long, streamId: Int, headers: Headers, stream: Stream[IO, Byte], secure: Boolean, sniServerNames: Option[Array[String]], trailingHeaders: Deferred[IO, Headers])

Represents an HTTP request.

Represents an HTTP request.

Value parameters

headers

the request headers

stream

a stream of request body bytes

trailingHeaders

deferred trailing headers

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Response

A companion object for the Response case class.

A companion object for the Response case class.

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Response.type
sealed case class Response(code: StatusCode, headers: Headers, stream: Stream[IO, Byte], trailers: Option[Headers], websocket: Option[IO[(IO, WebSocketFrame) => WebSocketFrame]])

Represents an HTTP response, including the response code, headers, and a response body as a Stream of bytes. Responses are immutable and can be modified using various helper methods.

Represents an HTTP response, including the response code, headers, and a response body as a Stream of bytes. Responses are immutable and can be modified using various helper methods.

Value parameters

code

the HTTP response code, such as 200 OK or 404 Not Found.

headers

the HTTP headers associated with the response.

stream

the response body as a Stream of bytes. Defaults to an empty stream.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class StatusCode(value: Int) extends AnyVal

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class AnyVal
trait Matchable
class Any
Show all
object StatusCode

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
StatusCode.type