Class

requests

Response

Related Doc: package requests

Permalink

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

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Response
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Response(url: String, statusCode: Int, statusMessage: String, headers: Map[String, Seq[String]], data: ResponseBlob, history: Option[Response])

    Permalink

    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

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  6. def contentLength: Option[String]

    Permalink
  7. def contentType: Option[String]

    Permalink
  8. def contents: Array[Byte]

    Permalink

    Returns the byte contents of this response

  9. val cookies: Map[String, HttpCookie]

    Permalink

    Returns the cookies set by this response, and by any redirects that lead up to it

  10. val data: ResponseBlob

    Permalink

    the response body; may contain HTML, JSON, or binary or textual data

  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  13. val headers: Map[String, Seq[String]]

    Permalink

    the raw headers the server sent back with the response

  14. val history: Option[Response]

    Permalink

    the response of any redirects that were performed before arriving at the current response

  15. def is2xx: Boolean

    Permalink
  16. def is3xx: Boolean

    Permalink
  17. def is4xx: Boolean

    Permalink
  18. def is5xx: Boolean

    Permalink
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def location: Option[String]

    Permalink
  21. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  24. val statusCode: Int

    Permalink

    the status code of the response

  25. val statusMessage: String

    Permalink

    the status message of the response

  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def text(cs: Charset): String

    Permalink

    Decodes the byte contents of this response as a String using the given charset

  28. def text(): String

    Permalink

    Decodes the byte contents of this response as a String using the default charset

  29. val url: String

    Permalink

    the URL that the original request was made to

  30. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped