ResponseOutputSyntax
zio.http.Handler.ResponseOutputSyntax
final implicit class ResponseOutputSyntax[-R, +Err, -In](val self: Handler[R, Err, In, Response]) extends AnyVal
Attributes
- Source
- Handler.scala
- Graph
-
- Supertypes
-
class AnyValtrait Matchableclass Any
Members list
Value members
Concrete methods
Extracts body
Extracts content-length from the response if available
Extracts the value of ContentType header
def header(headerType: HeaderType)(implicit trace: Trace): Handler[R, Err, In, Option[headerType.HeaderValue]]
Extracts the value of the provided header name.
def headerOrFail(headerType: HeaderType)(implicit trace: Trace, ev: Err <:< String): Handler[R, String, In, Option[headerType.HeaderValue]]
Attributes
- Source
- Handler.scala
Extracts the Headers from the type B if possible
Attributes
- Source
- Handler.scala
Extracts Status from the type B is possible.
Concrete fields
Attributes
- Source
- Handler.scala
In this article