NetworkRequest
@Poko
Represents an HTTP request.
Parameters
url
The URL to fetch.
method
The HTTP method.
headers
The HTTP headers.
body
The HTTP request body.
extras
Extras to support extension.
Constructors
Link copied to clipboard
constructor(url: String, method: String = HTTP_METHOD_GET, headers: NetworkHeaders = NetworkHeaders.EMPTY, body: NetworkRequestBody? = null, extras: Extras = Extras.EMPTY)
Properties
Functions
Link copied to clipboard
fun copy(url: String = this.url, method: String = this.method, headers: NetworkHeaders = this.headers, body: NetworkRequestBody? = this.body, extras: Extras = this.extras): NetworkRequest