HttpClientAdapter

Interface of HTTP Client

Properties

Link copied to clipboard
abstract var headers: Map<String, String>

Specify the HTTP communication header.

Link copied to clipboard
abstract var userAgent: String

Specify the value of User-Agent used for HTTP communication.

Functions

Link copied to clipboard
abstract fun get(url: String): HttpResponse

Execute HTTP GET method

Link copied to clipboard
abstract fun head(url: String): HttpResponse

Execute HTTP HEAD method