Class Request
- java.lang.Object
-
- org.openqa.selenium.devtools.network.model.Request
-
public class Request extends java.lang.Object
HTTP request data.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Request.ReferrerPolicy
-
Constructor Summary
Constructors Constructor Description Request(java.lang.String url, java.util.Optional<java.lang.String> urlFragment, java.lang.String method, Headers headers, java.util.Optional<java.lang.String> postData, java.util.Optional<java.lang.Boolean> hasPostData, java.util.Optional<MixedContentType> mixedContentType, ResourcePriority initialPriority, Request.ReferrerPolicy referrerPolicy, java.util.Optional<java.lang.Boolean> isLinkPreload)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.Boolean>
getHasPostData()
True when the request has POST data.Headers
getHeaders()
HTTP request headers.ResourcePriority
getInitialPriority()
Priority of the resource request at the time request is sent.java.util.Optional<java.lang.Boolean>
getIsLinkPreload()
Whether is loaded via link preload.java.lang.String
getMethod()
HTTP request method.java.util.Optional<MixedContentType>
getMixedContentType()
The mixed content type of the request.java.util.Optional<java.lang.String>
getPostData()
HTTP POST request data.Request.ReferrerPolicy
getReferrerPolicy()
The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/java.lang.String
getUrl()
Request URL (without fragment).java.util.Optional<java.lang.String>
getUrlFragment()
Fragment of the requested URL starting with hash, if present.
-
-
-
Constructor Detail
-
Request
public Request(java.lang.String url, java.util.Optional<java.lang.String> urlFragment, java.lang.String method, Headers headers, java.util.Optional<java.lang.String> postData, java.util.Optional<java.lang.Boolean> hasPostData, java.util.Optional<MixedContentType> mixedContentType, ResourcePriority initialPriority, Request.ReferrerPolicy referrerPolicy, java.util.Optional<java.lang.Boolean> isLinkPreload)
-
-
Method Detail
-
getUrl
public java.lang.String getUrl()
Request URL (without fragment).
-
getUrlFragment
public java.util.Optional<java.lang.String> getUrlFragment()
Fragment of the requested URL starting with hash, if present.
-
getMethod
public java.lang.String getMethod()
HTTP request method.
-
getHeaders
public Headers getHeaders()
HTTP request headers.
-
getPostData
public java.util.Optional<java.lang.String> getPostData()
HTTP POST request data.
-
getHasPostData
public java.util.Optional<java.lang.Boolean> 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.
-
getMixedContentType
public java.util.Optional<MixedContentType> getMixedContentType()
The mixed content type of the request.
-
getInitialPriority
public ResourcePriority getInitialPriority()
Priority of the resource request at the time request is sent.
-
getReferrerPolicy
public Request.ReferrerPolicy getReferrerPolicy()
The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/
-
getIsLinkPreload
public java.util.Optional<java.lang.Boolean> getIsLinkPreload()
Whether is loaded via link preload.
-
-