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.
|
RequestReferrerPolicy |
getReferrerPolicy()
The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/
|
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 |
setReferrerPolicy(RequestReferrerPolicy referrerPolicy)
The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/
|
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 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)
Copyright © 2020. All rights reserved.