HttpResponse

harness.http.server.HttpResponse
See theHttpResponse companion object
final case class HttpResponse[B](body: B, code: HttpCode, headers: Map[String, List[String]], cookies: List[SetCookie])

Attributes

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

Members list

Value members

Concrete methods

def addHeader(k: String, v: String): HttpResponse[B]
def addHeaders(k: String, vs: List[String]): HttpResponse[B]
def withCookie(cookie: SetCookie): HttpResponse[B]
def withHeader(k: String, v: String): HttpResponse[B]
def withHeaders(k: String, vs: List[String]): HttpResponse[B]

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product