Request

io.quartz.http2.model.Request
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.

Value parameters

headers

the request headers

stream

a stream of request body bytes

trailingHeaders

deferred trailing headers

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def body: IO[Array[Byte]]

Returns the request body as a byte array.

Returns the request body as a byte array.

Attributes

Returns

the request body as a byte array

def contentLen: String

Returns the content length of the request body as a string.

Returns the content length of the request body as a string.

Attributes

Returns

the content length of the request body as a string

Returns the content type of the request body.

Returns the content type of the request body.

Attributes

Returns

the content type of the request body

def hdr(hdr: Headers): Request

Adds the specified headers to the request headers.

Adds the specified headers to the request headers.

Value parameters

hdr

the headers to add

Attributes

Returns

a new request with the additional headers

def hdr(pair: (String, String)): Request

Adds the specified header pair to the request headers.

Adds the specified header pair to the request headers.

Value parameters

pair

a tuple containing the header name and value

Attributes

Returns

a new request with the additional header pair

def isJSONBody: Boolean

Returns true if the content type of the request body is JSON.

Returns true if the content type of the request body is JSON.

Attributes

Returns

true if the content type of the request body is JSON

def method: Method

Returns the HTTP method used in the request.

Returns the HTTP method used in the request.

Attributes

Returns

the HTTP method used in the request

def path: String

Returns the path component of the request URI.

Returns the path component of the request URI.

Attributes

Returns

the path component of the request URI

def transferEncoding: List[String]

Returns the transfer encoding used in the request.

Returns the transfer encoding used in the request.

Attributes

Returns

the transfer encoding used in the request

def uri: URI

Returns the URI of the request.

Returns the URI of the request.

Attributes

Returns

the URI of the request

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product