HttpRequest

open class HttpRequest

Represents an HTTP request.

Inheritors

Constructors

Link copied to clipboard
constructor(url: String)
constructor(url: String, @Nullable headers: Map<String, String>, @Nullable body: Array<Byte>, httpMethod: String)

Properties

Link copied to clipboard
open var body: Array<Byte>
Link copied to clipboard
open var headers: Map<String, String>
Link copied to clipboard
open var url: String

Functions

Link copied to clipboard
open fun getMethod(): String
Returns the HTTP method of the request.
Link copied to clipboard
open fun setMethod(httpMethod: String)
Set the HTTP method of the request.