ResponseOutputSyntax

zio.http.Handler.ResponseOutputSyntax
final implicit class ResponseOutputSyntax[-R, +Err, -In](val self: Handler[R, Err, In, Response]) extends AnyVal

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def body(implicit trace: Trace): Handler[R, Err, In, Body]

Extracts body

Extracts body

Attributes

def contentLength(implicit trace: Trace): Handler[R, Err, In, Option[ContentLength]]

Extracts content-length from the response if available

Extracts content-length from the response if available

Attributes

def contentType(implicit trace: Trace): Handler[R, Err, In, Option[ContentType]]

Extracts the value of ContentType header

Extracts the value of ContentType header

Attributes

def header(headerType: HeaderType)(implicit trace: Trace): Handler[R, Err, In, Option[HeaderValue]]

Extracts the value of the provided header name.

Extracts the value of the provided header name.

Attributes

def headerOrFail(headerType: HeaderType)(implicit trace: Trace, ev: Err <:< String): Handler[R, String, In, Option[HeaderValue]]
def headers(implicit trace: Trace): Handler[R, Err, In, Headers]

Extracts the Headers from the type B if possible

Extracts the Headers from the type B if possible

Attributes

def rawHeader(name: CharSequence)(implicit trace: Trace): Handler[R, Err, In, Option[String]]
def status(implicit trace: Trace): Handler[R, Err, In, Status]

Extracts Status from the type B is possible.

Extracts Status from the type B is possible.

Attributes

Concrete fields

val self: Handler[R, Err, In, Response]