HttpResponse

Encapsulates an HTTP/HTTPS response.

Since

8.30

Inheritors

Properties

Link copied to clipboard
abstract val byteStream: InputStream?

The output from the HTTP response.

Link copied to clipboard
abstract val code: Int

The response code returned by the HTTP response.

Link copied to clipboard
abstract val headers: List<Pair<String, String>>?

The headers returned as part of the HTTP response.

Link copied to clipboard
abstract val message: String?

The response phrase, or null if none, returned by the HTTP response.

Link copied to clipboard

The original HTTP request.

Link copied to clipboard
abstract val url: String

The (possibly redirected) URL from the HTTP request.

Functions

Link copied to clipboard
abstract override fun close()