public class Request extends Object
| Constructor and Description |
|---|
Request() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getHasPostData()
True when the request has POST data.
|
Map<String,Object> |
getHeaders()
HTTP request headers.
|
ResourcePriority |
getInitialPriority()
Priority of the resource request at the time request is sent.
|
Boolean |
getIsLinkPreload()
Whether is loaded via link preload.
|
String |
getMethod()
HTTP request method.
|
MixedContentType |
getMixedContentType()
The mixed content type of the request.
|
String |
getPostData()
HTTP POST request data.
|
List<PostDataEntry> |
getPostDataEntries()
Request body elements.
|
RequestReferrerPolicy |
getReferrerPolicy()
The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/
|
TrustTokenParams |
getTrustTokenParams()
Set for requests when the TrustToken API is used.
|
String |
getUrl()
Request URL (without fragment).
|
String |
getUrlFragment()
Fragment of the requested URL starting with hash, if present.
|
void |
setHasPostData(Boolean hasPostData)
True when the request has POST data.
|
void |
setHeaders(Map<String,Object> headers)
HTTP request headers.
|
void |
setInitialPriority(ResourcePriority initialPriority)
Priority of the resource request at the time request is sent.
|
void |
setIsLinkPreload(Boolean isLinkPreload)
Whether is loaded via link preload.
|
void |
setMethod(String method)
HTTP request method.
|
void |
setMixedContentType(MixedContentType mixedContentType)
The mixed content type of the request.
|
void |
setPostData(String postData)
HTTP POST request data.
|
void |
setPostDataEntries(List<PostDataEntry> postDataEntries)
Request body elements.
|
void |
setReferrerPolicy(RequestReferrerPolicy referrerPolicy)
The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/
|
void |
setTrustTokenParams(TrustTokenParams trustTokenParams)
Set for requests when the TrustToken API is used.
|
void |
setUrl(String url)
Request URL (without fragment).
|
void |
setUrlFragment(String urlFragment)
Fragment of the requested URL starting with hash, if present.
|
public String getUrl()
public void setUrl(String url)
public String getUrlFragment()
public void setUrlFragment(String urlFragment)
public String getMethod()
public void setMethod(String method)
public String getPostData()
public void setPostData(String postData)
public Boolean getHasPostData()
public void setHasPostData(Boolean hasPostData)
public List<PostDataEntry> getPostDataEntries()
public void setPostDataEntries(List<PostDataEntry> postDataEntries)
public MixedContentType getMixedContentType()
public void setMixedContentType(MixedContentType mixedContentType)
public ResourcePriority getInitialPriority()
public void setInitialPriority(ResourcePriority initialPriority)
public RequestReferrerPolicy getReferrerPolicy()
public void setReferrerPolicy(RequestReferrerPolicy referrerPolicy)
public Boolean getIsLinkPreload()
public void setIsLinkPreload(Boolean isLinkPreload)
public TrustTokenParams getTrustTokenParams()
public void setTrustTokenParams(TrustTokenParams trustTokenParams)
Copyright © 2021 Kenan Klisura. All rights reserved.