org.http4s

Response

case class Response(status: Status = Status.Ok, headers: Headers = Headers.empty, body: HttpBody = HttpBody.empty, attributes: AttributeMap = AttributeMap.empty) extends Message with http4s.ResponseSyntax.ResponseSyntaxBase[Response] with Product with Serializable

Representation of the HTTP response to send back to the client

status

Status code and message

headers

Headers containing all response headers

body

scalaz.stream.Process[Task,Chunk] representing the possible body of the response

attributes

AttributeMap containing additional parameters which may be used by the http4s backend for additional processing such as websocket.websocketKey or java.io.File objects

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Response
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. ResponseSyntaxBase
  7. Message
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

    status

    Status code and message

    headers

    Headers containing all response headers

    body

    scalaz.stream.Process[Task,Chunk] representing the possible body of the response

    attributes

    AttributeMap containing additional parameters which may be used by the http4s backend for additional processing such as websocket.websocketKey or java.io.File objects

Type Members

  1. type Self = Response

    Definition Classes
    ResponseMessage

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def addAttribute[V](key: AttributeKey[V], value: V): Response

    Definition Classes
    ResponseSyntaxBase
  7. def addAttribute[V](entry: AttributeEntry[V]): Response

    Definition Classes
    ResponseSyntaxBase
  8. def addCookie(name: String, content: String, expires: Option[DateTime] = None): Response

    Add a Set-Cookie header with the provided values

    Add a Set-Cookie header with the provided values

    Definition Classes
    ResponseSyntaxBase
  9. def addCookie(cookie: Cookie): Response

    Add a Set-Cookie header for the provided Cookie

    Add a Set-Cookie header for the provided Cookie

    Definition Classes
    ResponseSyntaxBase
  10. def addHeader(header: Header): Self

    Definition Classes
    Message
  11. def addHeaders(headers: Header*): Response

    Add the provided headers to the existing headers

    Add the provided headers to the existing headers

    Definition Classes
    ResponseSyntaxBase
  12. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  13. val attributes: AttributeMap

    AttributeMap containing additional parameters which may be used by the http4s backend for additional processing such as websocket.websocketKey or java.

    AttributeMap containing additional parameters which may be used by the http4s backend for additional processing such as websocket.websocketKey or java.io.File objects

  14. val body: HttpBody

    scalaz.

    scalaz.stream.Process[Task,Chunk] representing the possible body of the response

  15. def charset: CharacterSet

    Definition Classes
    Message
  16. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. def contentLength: Option[Int]

    Definition Classes
    Message
  18. def contentType: Option[Content-Type]

    Definition Classes
    Message
  19. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. def filterHeaders(f: (Header) ⇒ Boolean): Self

    Definition Classes
    Message
  21. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  23. val headers: Headers

    Headers containing all response headers

  24. def isChunked: Boolean

    Definition Classes
    Message
  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  29. def putHeader(header: Header): Self

    Definition Classes
    Message
  30. def putHeaders(headers: Header*): Response

    Add the provided headers to the existing headers, replacing those of the same header name

    Add the provided headers to the existing headers, replacing those of the same header name

    Definition Classes
    ResponseSyntaxBase
  31. def removeCookie(name: String): Response

    Add a Set-Cookie which will remove the specified cookie from the client

    Add a Set-Cookie which will remove the specified cookie from the client

    Definition Classes
    ResponseSyntaxBase
  32. def removeCookie(cookie: Cookie): Response

    Add a `Set-Cookie` which will remove the specified cookie from the client

    Add a `Set-Cookie` which will remove the specified cookie from the client

    Definition Classes
    ResponseSyntaxBase
  33. def removeHeader(key: HeaderKey): Self

    Definition Classes
    Message
  34. val status: Status

    Status code and message

  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  36. def translateResponse(f: (Response) ⇒ Response): Response

    Attributes
    protected
    Definition Classes
    ResponseResponseSyntaxBase
  37. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. def withBody(body: HttpBody): Response

    Replace the body of this Response with a new scalaz.

    Replace the body of this Response with a new scalaz.stream.Process[Task,Chunk]

    Definition Classes
    ResponseMessage
  41. def withContentType(contentType: Option[Content-Type]): Self

    Definition Classes
    Message
  42. def withHeaders(headers: Header*): Response

    Replace the existing headers with those provided

    Replace the existing headers with those provided

    Definition Classes
    ResponseSyntaxBase
  43. def withHeaders(headers: Headers): Response

    Replace the existing headers with those provided

    Replace the existing headers with those provided

    Definition Classes
    ResponseSyntaxBase
  44. def withStatus[T](status: T)(implicit arg0: (T) ⇒ Status): Response

    Definition Classes
    ResponseSyntaxBase
  45. def withType(t: MediaType): Response

    Added the `Content-Type` header to the response

    Added the `Content-Type` header to the response

    Definition Classes
    ResponseSyntaxBase

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Message

Inherited from AnyRef

Inherited from Any

Ungrouped