io.quartz.http2.model.Response
See theResponse companion object 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.
Attributes 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.
Companion: object Graph Reset zoom Hide graph Show graph
Supertypes trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Members list Concise view
Value members
Sets the response body to the given Stream
of bytes.
Sets the response body to the given Stream
of bytes.
Attributes
Sets the response body to the given text string, encoded as bytes.
Sets the response body to the given text string, encoded as bytes.
Attributes
Sets the content type header for the response.
Sets the content type header for the response.
Attributes
Adds a cookie to the response headers.
Adds a cookie to the response headers.
Attributes
Adds the given headers to the response headers.
Adds the given headers to the response headers.
Attributes
Adds a single header to the response headers, given as a tuple of (name, value).
Adds a single header to the response headers, given as a tuple of (name, value).
Attributes
Returns true if the response body is sent using chunked encoding.
Returns true if the response body is sent using chunked encoding.
Attributes
Returns the list of transfer encoding values associated with the response.
Returns the list of transfer encoding values associated with the response.
Attributes
Sets the transfer encoding header for the response.
Sets the transfer encoding header for the response.
Attributes
Attributes Inherited from: Product
Attributes Inherited from: Product