HttpRequest

HttpRequest

open class HttpRequest

Represents an HTTP request.

Inheritors

Constructors

HttpRequestconstructor(url: String)constructor(url: String, @Nullableheaders: Map<String, String>, @Nullablebody: Array<Byte>, httpMethod: String)

Properties

NameSummary
body@get:Nullable
open var body: Array<Byte>
headers@get:Nullable
open var headers: Map<String, String>
urlopen var url: String

Functions

NameSummary
getMethodopen fun getMethod(): String
Returns the HTTP method of the request.
setMethodopen fun setMethod(httpMethod: String)
Set the HTTP method of the request.