BlockingResponse

@native @JSType
trait BlockingResponse extends Object
Companion
object
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object

Concrete fields

Optional: Only used as a response to the onAuthRequired event. If set, the request is made using the supplied credentials.

Optional: Only used as a response to the onAuthRequired event. If set, the request is made using the supplied credentials.

val cancel: UndefOr[Boolean]

Optional: If true, the request is cancelled. Used in onBeforeRequest, this prevents the request from being sent.

Optional: If true, the request is cancelled. Used in onBeforeRequest, this prevents the request from being sent.

val redirectUrl: UndefOr[String]

Optional: Only used as a response to the onBeforeRequest and onHeadersReceived events. If set, the original request is prevented from being sent/completed and is instead redirected to the given URL. Redirections to non-HTTP schemes such as data: are allowed. Redirects initiated by a redirect action use the original request method for the redirect, with one exception: If the redirect is initiated at the onHeadersReceived stage, then the redirect will be issued using the GET method.

Optional: Only used as a response to the onBeforeRequest and onHeadersReceived events. If set, the original request is prevented from being sent/completed and is instead redirected to the given URL. Redirections to non-HTTP schemes such as data: are allowed. Redirects initiated by a redirect action use the original request method for the redirect, with one exception: If the redirect is initiated at the onHeadersReceived stage, then the redirect will be issued using the GET method.

val requestHeaders: UndefOr[Array[HttpHeader]]

Optional: Only used as a response to the onBeforeSendHeaders event. If set, the request is made with these request headers instead.

Optional: Only used as a response to the onBeforeSendHeaders event. If set, the request is made with these request headers instead.

val responseHeaders: UndefOr[Array[HttpHeader]]

Optional: Only used as a response to the onHeadersReceived event. If set, the server is assumed to have responded with these response headers instead. Only return responseHeaders if you really want to modify the headers in order to limit the number of conflicts (only one extension may modify responseHeaders for each request).

Optional: Only used as a response to the onHeadersReceived event. If set, the server is assumed to have responded with these response headers instead. Only return responseHeaders if you really want to modify the headers in order to limit the number of conflicts (only one extension may modify responseHeaders for each request).