case class Response(url: String, statusCode: Int, statusMessage: String, headers: Map[String, Seq[String]], data: ResponseBlob, history: Option[Response]) extends Product with Serializable
Represents a HTTP response
- url
the URL that the original request was made to
- statusCode
the status code of the response
- statusMessage
the status message of the response
- headers
the raw headers the server sent back with the response
- data
the response body; may contain HTML, JSON, or binary or textual data
- history
the response of any redirects that were performed before arriving at the current response
- Alphabetic
- By Inheritance
- Response
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Response(url: String, statusCode: Int, statusMessage: String, headers: Map[String, Seq[String]], data: ResponseBlob, history: Option[Response])
- url
the URL that the original request was made to
- statusCode
the status code of the response
- statusMessage
the status message of the response
- headers
the raw headers the server sent back with the response
- data
the response body; may contain HTML, JSON, or binary or textual data
- history
the response of any redirects that were performed before arriving at the current response
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def contentLength: Option[String]
- def contentType: Option[String]
-
def
contents: Array[Byte]
Returns the byte contents of this response
-
val
cookies: Map[String, HttpCookie]
Returns the cookies set by this response, and by any redirects that lead up to it
- val data: ResponseBlob
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val headers: Map[String, Seq[String]]
- val history: Option[Response]
- def is2xx: Boolean
- def is3xx: Boolean
- def is4xx: Boolean
- def is5xx: Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def location: Option[String]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val statusCode: Int
- val statusMessage: String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
text(cs: Charset): String
Decodes the byte contents of this response as a String using the given charset
-
def
text(): String
Decodes the byte contents of this response as a String using the default charset
- val url: String
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )