data class Request
(source)
HTTP request data.
Link
Network#Request type documentation.
Request(url: String, urlFragment: String? = null, method: String, headers: Headers, postData: String? = null, hasPostData: Boolean? = null, mixedContentType: MixedContentType? = null, initialPriority: ResourcePriority, referrerPolicy: String, isLinkPreload: Boolean? = null)
HTTP request data. |
val hasPostData: Boolean?
True when the request has POST data. Note that postData might still be omitted when this flag is true when the data is too long. |
|
val headers: Headers
HTTP request headers. |
|
val initialPriority: ResourcePriority
Priority of the resource request at the time request is sent. |
|
val isLinkPreload: Boolean?
Whether is loaded via link preload. |
|
val method: String
HTTP request method. |
|
val mixedContentType: MixedContentType?
The mixed content type of the request. |
|
val postData: String?
HTTP POST request data. |
|
val referrerPolicy: String
The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/ |
|
val url: String
Request URL (without fragment). |
|
val urlFragment: String?
Fragment of the requested URL starting with hash, if present. |