Response

enterprise.Response
See theResponse companion object
final case class Response[-U](status: Status, body: Body[U], headers: Headers)

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def addCookie(cookie: ResponseCookie): Response[U]
def addHeader(h: Header): Response[U]
def getCookie(name: String): Option[ResponseCookie]
def modBody[V](f: (Body[U]) => Body[V]): Response[V]
def putHeader(h: Header): Response[U]
def withBody[V](body: Body[V]): Response[V]
def withBody[V](body: Body[V], mediaType: MediaType): Response[V]
def withHeaders(headers: Headers): Response[U]
def withJsonBody[V](body: Body[V]): Response[V]
def withStatus(status: Status): Response[U]
def withText(text: String): Response[Any]

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product