Request

data class Request(url: String, urlFragment: String?, method: String, headers: Headers, postData: String?, hasPostData: Boolean?, postDataEntries: List<PostDataEntry>?, mixedContentType: MixedContentType?, initialPriority: ResourcePriority, referrerPolicy: String, isLinkPreload: Boolean?, trustTokenParams: TrustTokenParams?)

HTTP request data.

Constructors

Request
Link copied to clipboard
fun 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)

Properties

hasPostData
Link copied to clipboard
val hasPostData: Boolean? = null
True when the request has POST data.
headers
Link copied to clipboard
val headers: Headers
HTTP request headers.
initialPriority
Link copied to clipboard
val initialPriority: ResourcePriority
Priority of the resource request at the time request is sent.
isLinkPreload
Link copied to clipboard
val isLinkPreload: Boolean? = null
Whether is loaded via link preload.
method
Link copied to clipboard
val method: String
HTTP request method.
mixedContentType
Link copied to clipboard
val mixedContentType: MixedContentType? = null
The mixed content type of the request.
postData
Link copied to clipboard
val postData: String? = null
HTTP POST request data.
postDataEntries
Link copied to clipboard
val postDataEntries: List<PostDataEntry>? = null
Request body elements.
referrerPolicy
Link copied to clipboard
val referrerPolicy: String
The referrer policy of the request, as defined in https://www.w3.
trustTokenParams
Link copied to clipboard
val trustTokenParams: TrustTokenParams? = null
Set for requests when the TrustToken API is used.
url
Link copied to clipboard
val url: String
Request URL (without fragment).
urlFragment
Link copied to clipboard
val urlFragment: String? = null
Fragment of the requested URL starting with hash, if present.

Sources

jvm source
Link copied to clipboard