java.lang.Object
org.openqa.selenium.devtools.v141.network.model.Request

public class Request extends Object
HTTP request data.
  • Constructor Details

  • Method Details

    • getUrl

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

      public Optional<String> getUrlFragment()
      Fragment of the requested URL starting with hash, if present.
    • getMethod

      public String getMethod()
      HTTP request method.
    • getHeaders

      public Headers getHeaders()
      HTTP request headers.
    • getPostData

      @Deprecated public Optional<String> getPostData()
      Deprecated.
      HTTP POST request data. Use postDataEntries instead.
    • getHasPostData

      public Optional<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

      @Beta public Optional<List<PostDataEntry>> getPostDataEntries()
      Request body elements (post data broken into individual entries).
    • getMixedContentType

      public 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 Optional<Boolean> getIsLinkPreload()
      Whether is loaded via link preload.
    • getTrustTokenParams

      @Beta public Optional<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.
    • getIsSameSite

      @Beta public Optional<Boolean> getIsSameSite()
      True if this resource request is considered to be the 'same site' as the request corresponding to the main frame.