object WebRequest extends ChromeAPI
- See also
- Alphabetic
- By Inheritance
- WebRequest
- ChromeAPI
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val MaxHandlerBehaviorChangedCallsPer10Minutes: Int
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def handlerBehaviorChanged(callback: UndefOr[Function0[_]] = js.undefined): Unit
Needs to be called when the behavior of the webRequest handlers has changed to prevent incorrect handling due to caching.
Needs to be called when the behavior of the webRequest handlers has changed to prevent incorrect handling due to caching. This function call is expensive. Don't call it often.
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- var onAuthRequired: WebRequestEventSource[BlockableAuthCallback[WebAuthenticationChallengeDetails]]
Fired when an authentication failure is received.
Fired when an authentication failure is received. The listener has three options: it can provide authentication credentials, it can cancel the request and display the error page, or it can take no action on the challenge. If bad user credentials are provided, this may be called multiple times for the same request.
- var onBeforeRedirect: WebRequestEventSource[Callback[WebRedirectionResponseDetails]]
Fired when a server-initiated redirect is about to occur.
- var onBeforeRequest: WebRequestEventSource[BlockableCallback[WebRequestBodyDetails]]
Fired when a request is about to occur.
- var onBeforeSendHeaders: WebRequestEventSource[BlockableCallback[WebRequestDetails]]
Fired before sending an HTTP request, once the request headers are available.
Fired before sending an HTTP request, once the request headers are available. This may occur after a TCP connection is made to the server, but before any HTTP data is sent.
- var onCompleted: WebRequestEventSource[Callback[WebResponseCacheDetails]]
Fired when a request is completed.
- var onErrorOccurred: WebRequestEventSource[Callback[WebResponseErrorDetails]]
Fired when an error occurs.
- val onHeadersReceived: WebRequestEventSource[BlockableCallback[WebResponseHeadersDetails]]
Fired when HTTP response headers of a request have been received.
- var onResponseStarted: WebRequestEventSource[Callback[WebResponseCacheDetails]]
Fired when the first byte of the response body is received.
Fired when the first byte of the response body is received. For HTTP requests, this means that the status line and response headers are available.
- var onSendHeaders: WebRequestEventSource[Callback[WebRequestHeadersDetails]]
Fired just before a request is going to be sent to the server (modifications of previous onBeforeSendHeaders callbacks are visible by the time onSendHeaders is fired).
- val requiredPermissions: Set[API]
- Definition Classes
- WebRequest → ChromeAPI
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()