data class Request
HTTP request data.
<init> |
HTTP request data. Request(url: String, urlFragment: String? = null, method: String, headers: Headers, postData: String? = null, hasPostData: Boolean? = null, postDataEntries: List<PostDataEntry>? = null, mixedContentType: MixedContentType? = null, initialPriority: ResourcePriority, referrerPolicy: String, isLinkPreload: Boolean? = null, trustTokenParams: TrustTokenParams? = null) |
hasPostData |
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 hasPostData: Boolean? |
headers |
HTTP request headers. val headers: Headers |
initialPriority |
Priority of the resource request at the time request is sent. val initialPriority: ResourcePriority |
isLinkPreload |
Whether is loaded via link preload. val isLinkPreload: Boolean? |
method |
HTTP request method. val method: String |
mixedContentType |
The mixed content type of the request. val mixedContentType: MixedContentType? |
postData |
HTTP POST request data. val postData: String? |
postDataEntries |
Request body elements. This will be converted from base64 to binary val postDataEntries: List<PostDataEntry>? |
referrerPolicy |
The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/ val referrerPolicy: String |
trustTokenParams |
Set for requests when the TrustToken API is used. Contains the parameters passed by the developer (e.g. via "fetch") as understood by the backend. val trustTokenParams: TrustTokenParams? |
url |
Request URL (without fragment). val url: String |
urlFragment |
Fragment of the requested URL starting with hash, if present. val urlFragment: String? |