pl.wendigo.chrome.api.network / Request

Request

data class Request (source)

HTTP request data.

Link
Network#Request type documentation.

Constructors

<init>

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.

Properties

hasPostData

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.

headers

val headers: Headers

HTTP request headers.

initialPriority

val initialPriority: ResourcePriority

Priority of the resource request at the time request is sent.

isLinkPreload

val isLinkPreload: Boolean?

Whether is loaded via link preload.

method

val method: String

HTTP request method.

mixedContentType

val mixedContentType: MixedContentType?

The mixed content type of the request.

postData

val postData: String?

HTTP POST request data.

referrerPolicy

val referrerPolicy: String

The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/

url

val url: String

Request URL (without fragment).

urlFragment

val urlFragment: String?

Fragment of the requested URL starting with hash, if present.