HttpResponseAdapter

wvlet.airframe.http.HttpResponseAdapter

A type class to bridge the original response type and HttpResponse

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Value members

Abstract methods

def contentTypeOf(resp: Resp): Option[String]
def headerOf(resp: Resp): HttpMultiMap
def messageOf(resp: Resp): Message
def statusCodeOf(resp: Resp): Int
def wrap(resp: Resp): HttpResponse[Resp]

Concrete methods

def contentBytesOf(resp: Resp): Array[Byte]
def contentStringOf(resp: Resp): String
def httpResponseOf(resp: Resp): Response
def statusOf(resp: Resp): HttpStatus