Class RequestWillBeSent


  • public class RequestWillBeSent
    extends java.lang.Object
    Fired when page is about to send HTTP request.
    • Constructor Detail

      • RequestWillBeSent

        public RequestWillBeSent​(RequestId requestId,
                                 LoaderId loaderId,
                                 java.lang.String documentURL,
                                 Request request,
                                 MonotonicTime timestamp,
                                 TimeSinceEpoch wallTime,
                                 Initiator initiator,
                                 java.lang.Boolean redirectHasExtraInfo,
                                 java.util.Optional<Response> redirectResponse,
                                 java.util.Optional<ResourceType> type,
                                 java.util.Optional<FrameId> frameId,
                                 java.util.Optional<java.lang.Boolean> hasUserGesture)
    • Method Detail

      • getRequestId

        public RequestId getRequestId()
        Request identifier.
      • getLoaderId

        public LoaderId getLoaderId()
        Loader identifier. Empty string if the request is fetched from worker.
      • getDocumentURL

        public java.lang.String getDocumentURL()
        URL of the document this request is loaded for.
      • getRequest

        public Request getRequest()
        Request data.
      • getInitiator

        public Initiator getInitiator()
        Request initiator.
      • getRedirectHasExtraInfo

        @Beta
        public java.lang.Boolean getRedirectHasExtraInfo()
        In the case that redirectResponse is populated, this flag indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted for the request which was just redirected.
      • getRedirectResponse

        public java.util.Optional<Response> getRedirectResponse()
        Redirect response data.
      • getType

        public java.util.Optional<ResourceType> getType()
        Type of this resource.
      • getFrameId

        public java.util.Optional<FrameId> getFrameId()
        Frame identifier.
      • getHasUserGesture

        public java.util.Optional<java.lang.Boolean> getHasUserGesture()
        Whether the request is initiated by a user gesture. Defaults to false.