final case class Response(status: Status = Status.Ok, headers: Headers = Headers.empty, body: Body = Body.empty) extends HeaderOps[Response] with Product with Serializable

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Response
  2. Serializable
  3. Product
  4. Equals
  5. HeaderOps
  6. HeaderChecks
  7. HeaderGetters
  8. HeaderModifier
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Response(status: Status = Status.Ok, headers: Headers = Headers.empty, body: Body = Body.empty)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addCookie(cookie: Cookie.Response): Response
  5. def addFlash[A](setter: Setter[A]): Response

    Adds flash values to the cookie-based flash-scope.

  6. final def addHeader(name: CharSequence, value: CharSequence): Response
    Definition Classes
    HeaderModifier
  7. final def addHeader(header: Header): Response
    Definition Classes
    HeaderModifier
  8. final def addHeaders(headers: Headers): Response
    Definition Classes
    HeaderModifier
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. val body: Body
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  12. def collect(implicit trace: Trace): ZIO[Any, Nothing, Response]

    Collects the potentially streaming body of the response into a single chunk.

    Collects the potentially streaming body of the response into a single chunk.

    Any errors that occur from the collection of the body will be caught and propagated to the Body

  13. def contentType(mediaType: MediaType): Response
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  16. final def hasContentType(mediaType: MediaType): Boolean
    Definition Classes
    HeaderChecks
  17. final def hasContentType(value: CharSequence): Boolean
    Definition Classes
    HeaderChecks
  18. final def hasFormMultipartContentType: Boolean
    Definition Classes
    HeaderChecks
  19. final def hasFormUrlencodedContentType: Boolean
    Definition Classes
    HeaderChecks
  20. final def hasHeader(header: Header): Boolean
    Definition Classes
    HeaderChecks
  21. final def hasHeader(headerType: HeaderType): Boolean
    Definition Classes
    HeaderChecks
  22. final def hasHeader(name: CharSequence): Boolean
    Definition Classes
    HeaderChecks
  23. final def hasJsonContentType: Boolean
    Definition Classes
    HeaderChecks
  24. final def hasTextPlainContentType: Boolean
    Definition Classes
    HeaderChecks
  25. final def hasXhtmlXmlContentType: Boolean
    Definition Classes
    HeaderChecks
  26. final def hasXmlContentType: Boolean
    Definition Classes
    HeaderChecks
  27. 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
  28. 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
  29. final def headers(headerType: HeaderType): Chunk[HeaderValue]
    Definition Classes
    HeaderGetters
  30. val headers: Headers

    Returns the headers

    Returns the headers

    Definition Classes
    ResponseHeaderGetters
  31. def ignoreBody(implicit trace: Trace): ZIO[Any, Nothing, Response]

    Consumes the streaming body fully and then discards it while also ignoring any failures

  32. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  33. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  34. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  35. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  36. def patch(p: Patch)(implicit trace: Trace): Response
  37. def productElementNames: Iterator[String]
    Definition Classes
    Product
  38. final def rawHeader(headerType: HeaderType): Option[String]

    Gets the raw unparsed header value

    Gets the raw unparsed header value

    Definition Classes
    HeaderGetters
  39. final def rawHeader(name: CharSequence): Option[String]

    Gets the raw unparsed header value

    Gets the raw unparsed header value

    Definition Classes
    HeaderGetters
  40. final def removeHeader(name: String): Response
    Definition Classes
    HeaderModifier
  41. final def removeHeader(headerType: HeaderType): Response
    Definition Classes
    HeaderModifier
  42. final def removeHeaders(headers: Set[String]): Response
    Definition Classes
    HeaderModifier
  43. final def setHeaders(headers: Headers): Response
    Definition Classes
    HeaderModifier
  44. def status(status: Status): Response

    Sets the status of the response

  45. val status: Status
  46. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  47. def toHandler(implicit trace: Trace): Handler[Any, Nothing, Any, Response]

    Creates an Http from a Response

  48. 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
    ResponseHeaderModifier
  49. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  50. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  51. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from HeaderOps[Response]

Inherited from HeaderChecks[Response]

Inherited from HeaderGetters

Inherited from HeaderModifier[Response]

Inherited from AnyRef

Inherited from Any

Ungrouped