Packages

final class ResponseHeader extends AnyRef

A simple HTTP response header, used for standard responses.

Source
Results.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ResponseHeader
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ResponseHeader(status: Int, _headers: Map[String, String] = Map.empty, reasonPhrase: Option[String] = None)

    status

    the response status, e.g. 200

    _headers

    the HTTP headers

    reasonPhrase

    the human-readable description of status, e.g. "Ok"; if None, the default phrase for the status will be used

Value Members

  1. def asJava: mvc.ResponseHeader
  2. def copy(status: Int = status, headers: Map[String, String] = headers, reasonPhrase: Option[String] = reasonPhrase): ResponseHeader
  3. def equals(o: Any): Boolean
    Definition Classes
    ResponseHeader → AnyRef → Any
  4. def hashCode(): Int
    Definition Classes
    ResponseHeader → AnyRef → Any
  5. val headers: Map[String, String]
  6. val reasonPhrase: Option[String]
  7. val status: Int
  8. def toString(): String
    Definition Classes
    ResponseHeader → AnyRef → Any