-
public final class RequestHTTP request data.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringurlprivate final StringurlFragmentprivate final Stringmethodprivate final JsonElementheadersprivate final StringpostDataprivate final BooleanhasPostDataprivate final List<PostDataEntry>postDataEntriesprivate final MixedContentTypemixedContentTypeprivate final ResourcePriorityinitialPriorityprivate final StringreferrerPolicyprivate final BooleanisLinkPreloadprivate final TrustTokenParamstrustTokenParams
-
Constructor Summary
Constructors Constructor Description Request(String url, String urlFragment, String method, JsonElement headers, String postData, Boolean hasPostData, List<PostDataEntry> postDataEntries, MixedContentType mixedContentType, ResourcePriority initialPriority, String referrerPolicy, Boolean isLinkPreload, TrustTokenParams trustTokenParams)
-
Method Summary
Modifier and Type Method Description final Stringcomponent1()final Stringcomponent2()final Stringcomponent3()final JsonElementcomponent4()final Stringcomponent5()final Booleancomponent6()final List<PostDataEntry>component7()final MixedContentTypecomponent8()final ResourcePrioritycomponent9()final Stringcomponent10()final Booleancomponent11()final TrustTokenParamscomponent12()final Requestcopy(String url, String urlFragment, String method, JsonElement headers, String postData, Boolean hasPostData, List<PostDataEntry> postDataEntries, MixedContentType mixedContentType, ResourcePriority initialPriority, String referrerPolicy, Boolean isLinkPreload, TrustTokenParams trustTokenParams)final StringgetUrl()Request URL (without fragment). final StringgetUrlFragment()Fragment of the requested URL starting with hash, if present. final StringgetMethod()HTTP request method. final JsonElementgetHeaders()HTTP request headers. final StringgetPostData()HTTP POST request data. final BooleangetHasPostData()True when the request has POST data. final List<PostDataEntry>getPostDataEntries()Request body elements. final MixedContentTypegetMixedContentType()The mixed content type of the request. final ResourcePrioritygetInitialPriority()Priority of the resource request at the time request is sent. final StringgetReferrerPolicy()The referrer policy of the request, as defined in https://www.w3. final BooleangetIsLinkPreload()Whether is loaded via link preload. final TrustTokenParamsgetTrustTokenParams()Set for requests when the TrustToken API is used. -
-
Constructor Detail
-
Request
Request(String url, String urlFragment, String method, JsonElement headers, String postData, Boolean hasPostData, List<PostDataEntry> postDataEntries, MixedContentType mixedContentType, ResourcePriority initialPriority, String referrerPolicy, Boolean isLinkPreload, TrustTokenParams trustTokenParams)
-
-
Method Detail
-
component1
final String component1()
-
component2
final String component2()
-
component3
final String component3()
-
component4
final JsonElement component4()
-
component5
final String component5()
-
component6
final Boolean component6()
-
component7
final List<PostDataEntry> component7()
-
component8
final MixedContentType component8()
-
component9
final ResourcePriority component9()
-
component10
final String component10()
-
component11
final Boolean component11()
-
component12
final TrustTokenParams component12()
-
copy
final Request copy(String url, String urlFragment, String method, JsonElement headers, String postData, Boolean hasPostData, List<PostDataEntry> postDataEntries, MixedContentType mixedContentType, ResourcePriority initialPriority, String referrerPolicy, Boolean isLinkPreload, TrustTokenParams trustTokenParams)
-
getUrlFragment
final String getUrlFragment()
Fragment of the requested URL starting with hash, if present.
-
getHeaders
final JsonElement getHeaders()
HTTP request headers.
-
getPostData
final String getPostData()
HTTP POST request data.
-
getHasPostData
final 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.
-
getPostDataEntries
final List<PostDataEntry> getPostDataEntries()
Request body elements. This will be converted from base64 to binary
-
getMixedContentType
final MixedContentType getMixedContentType()
The mixed content type of the request.
-
getInitialPriority
final ResourcePriority getInitialPriority()
Priority of the resource request at the time request is sent.
-
getReferrerPolicy
final String getReferrerPolicy()
The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/
-
getIsLinkPreload
final Boolean getIsLinkPreload()
Whether is loaded via link preload.
-
getTrustTokenParams
final TrustTokenParams 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.
-
-
-
-