object WebRequest extends Object
- Annotations
- @native() @JSGlobal( "chrome.webRequest" )
- Alphabetic
- By Inheritance
- WebRequest
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- type BlockableAuthCallback[R <: ResourceRequest] = Function2[R, UndefOr[Function1[BlockingResponse, _]], UndefOr[BlockingResponse]]
- type BlockableCallback[R <: ResourceRequest] = Function1[R, UndefOr[BlockingResponse]]
- type Callback[R <: ResourceRequest] = Function1[R, Unit]
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
MAX_HANDLER_BEHAVIOR_CHANGED_CALLS_PER_10_MINUTES: Int
The maximum number of times that handlerBehaviorChanged can be called per 10 minute sustained interval.
The maximum number of times that handlerBehaviorChanged can be called per 10 minute sustained interval. handlerBehaviorChanged is an expensive function call that shouldn't be called often.
- Since
Chrome 23.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- 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
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
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: WebRequestEvent[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: WebRequestEvent[Callback[WebRedirectionResponseDetails]]
Fired when a server-initiated redirect is about to occur.
-
var
onBeforeRequest: WebRequestEvent[BlockableCallback[WebRequestBodyDetails]]
Fired when a request is about to occur.
-
var
onBeforeSendHeaders: WebRequestEvent[BlockableCallback[WebRequestHeadersDetails]]
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: WebRequestEvent[Callback[WebResponseCacheDetails]]
Fired when a request is completed.
-
var
onErrorOccurred: WebRequestEvent[Callback[WebResponseErrorDetails]]
Fired when an error occurs.
-
val
onHeadersReceived: WebRequestEvent[BlockableCallback[WebResponseHeadersDetails]]
Fired when HTTP response headers of a request have been received.
-
var
onResponseStarted: WebRequestEvent[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: WebRequestEvent[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).
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
valueOf(): Any
- Definition Classes
- Object
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()