Response

sttp.client3.Response
See theResponse companion object
case class Response[T](body: T, code: StatusCode, statusText: String, headers: Seq[Header], history: List[Response[Unit]], request: RequestMetadata) extends ResponseMetadata

Attributes

history

If redirects are followed, and there were redirects, contains responses for the intermediate requests. The first response (oldest) comes first.

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait ResponseMetadata
trait HasHeaders
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def show(includeBody: Boolean, includeHeaders: Boolean, sensitiveHeaders: Set[String]): String
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns:

a string representation of the object.

Definition Classes
ResponseMetadata -> Any

Inherited methods

def contentLength: Option[Long]

Attributes

Inherited from:
HasHeaders
def contentType: Option[String]

Attributes

Inherited from:
HasHeaders
def cookies: Seq[Either[String, CookieWithMeta]]

Attributes

Inherited from:
HasHeaders
def header(h: String): Option[String]

Attributes

Inherited from:
HasHeaders
def headers(h: String): Seq[String]

Attributes

Inherited from:
HasHeaders
def is200: Boolean

Attributes

Inherited from:
ResponseMetadata
def isClientError: Boolean

Attributes

Inherited from:
ResponseMetadata
def isRedirect: Boolean

Attributes

Inherited from:
ResponseMetadata
def isServerError: Boolean

Attributes

Inherited from:
ResponseMetadata
def isSuccess: Boolean

Attributes

Inherited from:
ResponseMetadata
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def unsafeCookies: Seq[CookieWithMeta]

Attributes

Inherited from:
HasHeaders