Class Request
java.lang.Object
org.openqa.selenium.devtools.v150.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, Optional<Boolean> isAdRelated) -
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.True when the resource request is ad-related.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, Optional<Boolean> isAdRelated)
-
-
Method Details
-
getUrl
Request URL (without fragment). -
getUrlFragment
-
getMethod
HTTP request method. -
getHeaders
HTTP request headers. -
getPostData
Deprecated.HTTP POST request data. Use postDataEntries instead. -
getHasPostData
-
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
-
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
-
getIsAdRelated
-