Response

cask.model.Response
See theResponse companion object
case class Response[+T](data: T, statusCode: Int, headers: Seq[(String, String)], cookies: Seq[Cookie])

The basic response returned by a HTTP endpoint.

Note that data by default can take in a wide range of types: strings, bytes, uPickle JSON-convertable types or arbitrary input streams. You can also construct your own implementations of Response.Data.

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 map[V](f: T => V): Response[V]

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product