GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

6 results across 6 corpora for declarativeNetRequest.RuleCondition.

Developer library 6

Intercept HTTP requests

Two APIs are available for intercepting HTTP requests: webRequest and declarativeNetRequest. The webRequest API intercepts requests by adding event listeners to the various stages of an HTTP request. The extension's listeners can inspect and modify requests programmatically: getting access to request and response headers and bodies, canceling requests, and redirecting them. Use `webRequest` when your extension needs

declarativeNetRequest

e and modify network requests without notifying extensions about individual network requests. ## Permissions To use this API, an extension must request the `"declarativeNetRequest"` or `"declarativeNetRequestWithHostAccess"` [permission](/docs/Mozilla/Add-ons/WebExtensions/manifest.json/permissions) in its [`manifest.json`](/docs/Mozilla/Add-ons/WebExtensions/manifest.json) file. The `"declarativeNetRequest"` permi

declarativeNetRequest.Rule

the [manifest.json's `declarative_net_request` key](/docs/Mozilla/Add-ons/WebExtensions/manifest.json/declarative_net_request), or more dynamically through the declarativeNetRequest.updateDynamicRules or declarativeNetRequest.updateSessionRules methods. See [Rules](/docs/Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest#rules) on the API overview page for more information about rules. ## Type Values of this

declarativeNetRequest.isRegexSupported()

Checks if a regular expression is supported as a [`declarativeNetRequest.RuleCondition.regexFilter`](/docs/Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/RuleCondition#regexfilter) rule condition. ## Syntax ```js-nolint let count = await browser.declarativeNetRequest.isRegexSupported( regexOptions // object ); ``` ### Parameters - `regexOptions` - : An object containing the regular e

declarativeNetRequest.HeaderInfo

The response header to match for the request, declared in the [`rule.condition.excludedResponseHeaders`](/docs/Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/RuleCondition#excludedresponseheaders) array or [`rule.condition.responseHeaders`](/docs/Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/RuleCondition#responseheaders) array. If specified, the array must be non-empty. When used in the condition

declarativeNetRequest.RuleCondition

Details of the condition that determines whether a rule matches a request, as the `condition` property of a declarativeNetRequest.Rule. ## Type Values of this type are objects. They contain these properties: - `domainType` - : A `string`. Specifies whether the network request is first-party or third-party. The request is considered first-party if it's for the same domain as the document or subdocument that init

JSON results · Services directory