OkHttpResponse

inner class OkHttpResponse(val request: HttpHandler.HttpRequest, response: Response) : HttpHandler.HttpResponse

Since

8.30

Constructors

Link copied to clipboard
constructor(request: HttpHandler.HttpRequest, response: Response)

Properties

Link copied to clipboard
open override val byteStream: InputStream?

The output from the HTTP response.

Link copied to clipboard
open override val code: Int

The response code returned by the HTTP response.

Link copied to clipboard
open override val headers: List<Pair<String, String>>

The headers returned as part of the HTTP response.

Link copied to clipboard
open override val message: String

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

Link copied to clipboard
open override val request: HttpHandler.HttpRequest

The original HTTP request.

Link copied to clipboard
open override val url: String

The (possibly redirected) URL from the HTTP request.

Functions

Link copied to clipboard
open override fun close()

Closes the response.