Class Request
java.lang.Object
org.openqa.selenium.devtools.v141.network.model.Request
HTTP request data.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRequest(String url, Optional<String> urlFragment, String method, Headers headers, Optional<String> postData, Optional<Boolean> hasPostData, Optional<List<PostDataEntry>> postDataEntries, Optional<MixedContentType> mixedContentType, ResourcePriority initialPriority, Request.ReferrerPolicy referrerPolicy, Optional<Boolean> isLinkPreload, Optional<TrustTokenParams> trustTokenParams, Optional<Boolean> isSameSite) -
Method Summary
Modifier and TypeMethodDescriptionTrue when the request has POST data.HTTP request headers.Priority of the resource request at the time request is sent.Whether is loaded via link preload.True if this resource request is considered to be the 'same site' as the request corresponding to the main frame.HTTP request method.The mixed content type of the request.Deprecated.Request body elements (post data broken into individual entries).The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/Set for requests when the TrustToken API is used.getUrl()Request URL (without fragment).Fragment of the requested URL starting with hash, if present.
-
Constructor Details
-
Request
public Request(String url, Optional<String> urlFragment, String method, Headers headers, Optional<String> postData, Optional<Boolean> hasPostData, Optional<List<PostDataEntry>> postDataEntries, Optional<MixedContentType> mixedContentType, ResourcePriority initialPriority, Request.ReferrerPolicy referrerPolicy, Optional<Boolean> isLinkPreload, Optional<TrustTokenParams> trustTokenParams, Optional<Boolean> isSameSite)
-
-
Method Details
-
getUrl
Request URL (without fragment). -
getUrlFragment
Fragment of the requested URL starting with hash, if present. -
getMethod
HTTP request method. -
getHeaders
HTTP request headers. -
getPostData
Deprecated.HTTP POST request data. Use postDataEntries instead. -
getHasPostData
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. -
getPostDataEntries
Request body elements (post data broken into individual entries). -
getMixedContentType
The mixed content type of the request. -
getInitialPriority
Priority of the resource request at the time request is sent. -
getReferrerPolicy
The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/ -
getIsLinkPreload
Whether is loaded via link preload. -
getTrustTokenParams
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. -
getIsSameSite
True if this resource request is considered to be the 'same site' as the request corresponding to the main frame.
-