HttpResponse

Represents an HTTP response received from a server.

An instance of this class is created internally by the SDK, and it encapsulates the details of the HTTP response.

Types

Link copied to clipboard
class Builder

The Builder class for HttpResponse.

Properties

Link copied to clipboard

The body of this response, represented as an HttpResponseBody.

Link copied to clipboard
val code: Int

The status code of this response.

Link copied to clipboard

The headers associated with this response.

Link copied to clipboard

Indicates whether the HTTP request was successful.

Link copied to clipboard

The status message of this response.

Link copied to clipboard

The protocol used for this response.

Link copied to clipboard

The original request that resulted in this response.

Functions

Link copied to clipboard
open override fun close()

Closes the resources associated with this HttpResponse.

Link copied to clipboard

Creates a new instance of HttpResponse based on this object, using a Kotlin domain-specific language (DSL) builder.

Link copied to clipboard

Returns an HttpResponse.Builder with the same properties as this HttpResponse.