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 addFlashMessage(message: String): Response
  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]) @native() @IntrinsicCandidate()
  12. def collect(implicit trace: Trace): ZIO[Any, Throwable, Response]

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

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

    Returns the headers

    Returns the headers

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

    Consumes the streaming body fully and then drops it

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

    Gets the raw unparsed header value

    Gets the raw unparsed header value

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

    Gets the raw unparsed header value

    Gets the raw unparsed header value

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

    Sets the status of the response

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

    Creates an Http from a Response

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

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