Class Request

java.lang.Object
io.webfolder.cdp.type.network.Request

public class Request extends Object
HTTP request data
  • Constructor Details

    • Request

      public Request()
  • Method Details

    • getUrl

      public String getUrl()
      Request URL (without fragment).
    • setUrl

      public void setUrl(String url)
      Request URL (without fragment).
    • getUrlFragment

      public String getUrlFragment()
      Fragment of the requested URL starting with hash, if present.
    • setUrlFragment

      public void setUrlFragment(String urlFragment)
      Fragment of the requested URL starting with hash, if present.
    • getMethod

      public String getMethod()
      HTTP request method.
    • setMethod

      public void setMethod(String method)
      HTTP request method.
    • getHeaders

      public Map<String,Object> getHeaders()
      HTTP request headers.
    • setHeaders

      public void setHeaders(Map<String,Object> headers)
      HTTP request headers.
    • getPostData

      public String getPostData()
      HTTP POST request data.
    • setPostData

      public void setPostData(String postData)
      HTTP POST request data.
    • isHasPostData

      public Boolean isHasPostData()
      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.
    • setHasPostData

      public void setHasPostData(Boolean hasPostData)
      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

      public List<PostDataEntry> getPostDataEntries()
      Request body elements. This will be converted from base64 to binary
    • setPostDataEntries

      public void setPostDataEntries(List<PostDataEntry> postDataEntries)
      Request body elements. This will be converted from base64 to binary
    • getMixedContentType

      public MixedContentType getMixedContentType()
      The mixed content type of the request.
    • setMixedContentType

      public void setMixedContentType(MixedContentType mixedContentType)
      The mixed content type of the request.
    • getInitialPriority

      public ResourcePriority getInitialPriority()
      Priority of the resource request at the time request is sent.
    • setInitialPriority

      public void setInitialPriority(ResourcePriority initialPriority)
      Priority of the resource request at the time request is sent.
    • getReferrerPolicy

      public ReferrerPolicy getReferrerPolicy()
      The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/
    • setReferrerPolicy

      public void setReferrerPolicy(ReferrerPolicy referrerPolicy)
      The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/
    • isIsLinkPreload

      public Boolean isIsLinkPreload()
      Whether is loaded via link preload.
    • setIsLinkPreload

      public void setIsLinkPreload(Boolean isLinkPreload)
      Whether is loaded via link preload.
    • getTrustTokenParams

      public 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.
    • setTrustTokenParams

      public void setTrustTokenParams(TrustTokenParams trustTokenParams)
      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.