final case class Response(status: Status = Status.Ok, headers: Headers = Headers.empty, body: Body = Body.empty) extends HeaderOps[Response] with Product with Serializable
- Self Type
- Response
- Alphabetic
- By Inheritance
- Response
- Serializable
- Serializable
- Product
- Equals
- HeaderOps
- HeaderChecks
- HeaderGetters
- HeaderModifier
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Response(status: Status = Status.Ok, headers: Headers = Headers.empty, body: Body = Body.empty)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addCookie(cookie: Cookie.Response): Response
-
def
addFlash[A](setter: Setter[A]): Response
Adds flash values to the cookie-based flash-scope.
-
final
def
addHeader(name: CharSequence, value: CharSequence): Response
- Definition Classes
- HeaderModifier
-
final
def
addHeader(header: Header): Response
- Definition Classes
- HeaderModifier
-
final
def
addHeaders(headers: Headers): Response
- Definition Classes
- HeaderModifier
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val body: Body
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
def
collect(implicit trace: Trace): ZIO[Any, Throwable, Response]
Collects the potentially streaming body of the response into a single chunk.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
hasContentType(value: CharSequence): Boolean
- Definition Classes
- HeaderChecks
-
final
def
hasFormMultipartContentType: Boolean
- Definition Classes
- HeaderChecks
-
final
def
hasFormUrlencodedContentType: Boolean
- Definition Classes
- HeaderChecks
-
final
def
hasHeader(header: Header): Boolean
- Definition Classes
- HeaderChecks
-
final
def
hasHeader(headerType: HeaderType): Boolean
- Definition Classes
- HeaderChecks
-
final
def
hasHeader(name: CharSequence): Boolean
- Definition Classes
- HeaderChecks
-
final
def
hasJsonContentType: Boolean
- Definition Classes
- HeaderChecks
-
final
def
hasMediaType(mediaType: MediaType): Boolean
- Definition Classes
- HeaderChecks
-
final
def
hasTextPlainContentType: Boolean
- Definition Classes
- HeaderChecks
-
final
def
hasXhtmlXmlContentType: Boolean
- Definition Classes
- HeaderChecks
-
final
def
hasXmlContentType: Boolean
- Definition Classes
- HeaderChecks
-
final
def
header(headerType: HeaderType): Option[HeaderValue]
Gets a header or returns None if the header was not present or it could not be parsed
Gets a header or returns None if the header was not present or it could not be parsed
- Definition Classes
- HeaderGetters
-
final
def
headerOrFail(headerType: HeaderType): Option[Either[String, HeaderValue]]
Gets a header.
Gets a header. If the header is not present, returns None. If the header could not be parsed it returns the parsing error
- Definition Classes
- HeaderGetters
-
final
def
headers(headerType: HeaderType): Chunk[HeaderValue]
- Definition Classes
- HeaderGetters
-
val
headers: Headers
Returns the headers
Returns the headers
- Definition Classes
- Response → HeaderGetters
-
def
ignoreBody(implicit trace: Trace): ZIO[Any, Throwable, Response]
Consumes the streaming body fully and then drops it
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def patch(p: Patch)(implicit trace: Trace): Response
-
final
def
rawHeader(headerType: HeaderType): Option[String]
Gets the raw unparsed header value
Gets the raw unparsed header value
- Definition Classes
- HeaderGetters
-
final
def
rawHeader(name: CharSequence): Option[String]
Gets the raw unparsed header value
Gets the raw unparsed header value
- Definition Classes
- HeaderGetters
-
final
def
removeHeader(name: String): Response
- Definition Classes
- HeaderModifier
-
final
def
removeHeader(headerType: HeaderType): Response
- Definition Classes
- HeaderModifier
-
final
def
removeHeaders(headers: Set[String]): Response
- Definition Classes
- HeaderModifier
-
final
def
setHeaders(headers: Headers): Response
- Definition Classes
- HeaderModifier
-
def
status(status: Status): Response
Sets the status of the response
- val status: Status
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toHandler(implicit trace: Trace): Handler[Any, Nothing, Any, Response]
Creates an Http from a Response
-
def
updateHeaders(update: (Headers) ⇒ Headers)(implicit trace: Trace): Response
Updates the current Headers with new one, using the provided update function passed.
Updates the current Headers with new one, using the provided update function passed.
- Definition Classes
- Response → HeaderModifier
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )