scalaz.http.response

Response

trait Response [OUT[_]] extends AnyRef

HTTP response. RFC 2616 Section 6 Response.

Attributes
sealed
Source
Response.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Response
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Abstract Value Members

  1. val body : OUT[Byte]

    The response body.

    The response body.

    Attributes
    abstract
  2. val headers : List[(ResponseHeader, NonEmptyList[Char])]

    The response headers.

    The response headers.

    Attributes
    abstract
  3. val line : StatusLine

    The response status line.

    The response status line.

    Attributes
    abstract

Concrete Value Members

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def - (h: ResponseHeader): Response[OUT]

    Delete the given header value from this response.

  5. def << [A] (a: A)(implicit b: Body[OUT, A], s: Semigroup[OUT[Byte]]): Response[OUT]

    Append the given value to the body of this response.

  6. def <<: [A] (a: A)(implicit b: Body[OUT, A], s: Semigroup[OUT[Byte]]): Response[OUT]

    Prepend the given value to the body of this response.

  7. def == (arg0: AnyRef): Boolean

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

    Attributes
    final
    Definition Classes
    Any
  9. def >> (b: OUT[Byte]): Response[OUT]

    Replace the body of this response with the given body.

  10. def acceptsXhtml [IN[_]] (implicit req: Request[IN]): Response[OUT]

    Sets the content-type response header for XHTML (application/xhtml+xml), however, if the browser identifies itself as not accepting this content type, set the response header for HTML (text/html).

  11. def apply (h: ResponseHeader): Option[NonEmptyList[Char]]

    Return the value of given header.

  12. def apply (l: StatusLine): Response[OUT]

    Replace the status line of this reponse with the given status line.

  13. def apply (h: ResponseHeader, s: String): Response[OUT]

    Add the given header and value to this response.

    Add the given header and value to this response. This function fails if the given string value is empty.

  14. def apply (h: ResponseHeader, v: NonEmptyList[Char]): Response[OUT]

    Add the given header and value to this response.

  15. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  16. def bodyLength (implicit f: Foldable[OUT]): Int

    The length of the response body.

  17. def bodyString (implicit e: Each[OUT]): String

    Returns the response body as a string.

  18. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  19. def contentType (f: (NonEmptyList[Char]) ⇒ Boolean): Boolean

    Returns true if the value of the given content-type header satisfies the given condition.

  20. def contentTypeEquals (s: String): Boolean

    Returns true if the value of the given content-type header equals the given value.

  21. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  22. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  23. def finalize (): Unit

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  25. def hasContentType : Boolean

    Returns true if this response has set the content-type header.

  26. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  27. lazy val headersMap : Map[ResponseHeader, NonEmptyList[NonEmptyList[Char]]]

    A map of headers offering optimal seek time.

  28. lazy val headersMapHeads : Map[ResponseHeader, NonEmptyList[Char]]

    A map of headers offering optimal seek time.

  29. def html : Response[OUT]

    Sets the Content-Type response header for HTML.

  30. def isBadRequest : Boolean

    Returns true if the status code of this response is a 400 Bad Request.

  31. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  32. def isOK : Boolean

    Returns true if the status code of this response is a 200 OK.

  33. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  34. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  35. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  36. def reasonPhrase : List[Char]

    The response status.

  37. def status : Status

    The response status.

  38. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  39. def toString (): String

    Definition Classes
    AnyRef → Any
  40. def unary_~ [IN[_]] (implicit request: Request[IN]): Response[OUT]

    Sets the ContentType response header according to the W3C MIME Reference if the given request path has a file extension and corresponds to a known file extension.

    Sets the ContentType response header according to the W3C MIME Reference if the given request path has a file extension and corresponds to a known file extension.

  41. def versionMajor : Digit

    The response version major of the status line.

  42. def versionMinor : Digit

    The response version minor of the status line.

  43. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  46. def xhtml : Response[OUT]

    Sets the Content-Type response header for XHTML.

  47. def xml : Response[OUT]

    Sets the Content-Type response header for XML.

  48. def |+| (b: OUT[Byte])(implicit s: Semigroup[OUT[Byte]]): Response[OUT]

    Append the given value to the body of this response.

Inherited from AnyRef

Inherited from Any