Response

interface Response

HTTP response.

Properties

Link copied to clipboard
abstract val body: BufferedSource?

HTTP response data source, if available.

Link copied to clipboard
abstract val headers: Headers

HTTP response headers, if any were delivered.

Link copied to clipboard
abstract val reasonPhrase: String?

HTTP status message of the response.

Link copied to clipboard
abstract val request: Request

HTTP request after API rewrites and/or HTTP redirects.

Link copied to clipboard
abstract val statusCode: Int

HTTP status code of the response.

Link copied to clipboard
abstract val trailers: Headers?

HTTP response trailers, if any were delivered.

Inheritors

Link copied to clipboard

Extensions

Link copied to clipboard

Convenience accessor for HTTP Content-Length header.

Link copied to clipboard

Convenience accessor for HTTP Content-Type header.

Link copied to clipboard

Convenience for checking if the Response.statusCode represents a successful response.