OkHttpResponse

com.malliina.http.OkHttpResponse
See theOkHttpResponse companion object
class OkHttpResponse(val inner: Response) extends HttpResponse

Attributes

Companion
object
Graph
Supertypes
trait HttpResponse
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def code: Int
def headers: Map[String, Seq[String]]

Inherited methods

def isSuccess: Boolean

Attributes

Inherited from:
HttpResponse
def json: Either[ParsingFailure, Json]

Attributes

Inherited from:
HttpResponse
def parse[T : Decoder]: Either[Error, T]

Attributes

Inherited from:
HttpResponse
def status: Int

Attributes

Inherited from:
HttpResponse

Concrete fields

override val asString: String

Attributes

Returns

the body as a string

val body: Option[ResponseBody]
val inner: Response
val string: Option[String]