case class Response(url: String, statusCode: Int, statusMessage: String, data: Bytes, headers: Map[String, Seq[String]], history: Option[Response]) extends ByteData with Readable with 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
- data
the response body; may contain HTML, JSON, or binary or textual data
- headers
the raw headers the server sent back with the response
- history
the response of any redirects that were performed before arriving at the current response
- Alphabetic
- By Inheritance
- Response
- Serializable
- Product
- Equals
- Readable
- Writable
- ByteData
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Response(url: String, statusCode: Int, statusMessage: String, data: Bytes, headers: Map[String, Seq[String]], 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
- data
the response body; may contain HTML, JSON, or binary or textual data
- headers
the raw headers the server sent back with the response
- 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 bytes: Array[Byte]
- Definition Classes
- Response → ByteData
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def contentLength: Option[Long]
- Definition Classes
- Response → Writable
- def contentType: Option[String]
- val cookies: Map[String, HttpCookie]
Returns the cookies set by this response, and by any redirects that lead up to it
- val data: Bytes
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val headers: Map[String, Seq[String]]
- val history: Option[Response]
- def httpContentType: Option[String]
- Definition Classes
- Response → Writable
- def is2xx: Boolean
- def is3xx: Boolean
- def is4xx: Boolean
- def is5xx: Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lines(codec: Codec): Vector[String]
- Definition Classes
- ByteData
- def lines(): Vector[String]
- Definition Classes
- ByteData
- 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()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def readBytesThrough[T](f: (InputStream) => T): T
- Definition Classes
- Response → Readable
- val statusCode: Int
- val statusMessage: String
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def text(codec: Codec): String
- Definition Classes
- ByteData
- def text(): String
- Definition Classes
- ByteData
- def trim(codec: Codec): String
- Definition Classes
- ByteData
- def trim(): String
- Definition Classes
- ByteData
- val url: String
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def writeBytesTo(out: OutputStream): Unit
- Definition Classes
- Readable → Writable
Deprecated Value Members
- def contents: Array[Byte]
- Annotations
- @deprecated
- Deprecated
Use
.bytes