Response

class Response(val connection: HttpURLConnection)

Constructors

Link copied to clipboard
constructor(connection: HttpURLConnection)

Properties

Link copied to clipboard
Link copied to clipboard

The expected response code

Functions

Link copied to clipboard
fun getResponseHeader(header: String, index: Int): String?

Gets the response header

Link copied to clipboard

Gets the response header count

Link copied to clipboard

Gets the response header names

Link copied to clipboard

Gets the response headers

Link copied to clipboard

Gets the response message

Link copied to clipboard

Gets the response stream

Link copied to clipboard

Gets the response string

Link copied to clipboard

Gets the status code

Link copied to clipboard

Checks if the status code is the same as the expected status code