"description": "Contains a list of strings describing stages. Allowed values are 'onBeforeRequest', 'onBeforeSendHeaders', 'onHeadersReceived', 'onAuthRequired'. If this attribute is present, then it limits the applicable stages to those listed. Note that the whole condition is only applicable in stages compatible with all attributes."
"description": "Redirects a request by applying a regular expression on the URL. The regular expressions use the <a href=\"http://code.google.com/p/re2/wiki/Syntax\">RE2 syntax</a>.",
"description": "A match pattern that may contain capture groups. Capture groups are referenced in the Perl syntax ($1, $2, ...) instead of the RE2 syntax (\\1, \\2, ...) in order to be closer to JavaScript Regular Expressions."
},
"to": {
"type": "string",
"description": "Destination pattern."
}
}
},
{
"id": "declarativeWebRequest.SetRequestHeader",
"description": "Sets the request header of the specified name to the specified value. If a header with the specified name did not exist before, a new one is created. Header name comparison is always case-insensitive. Each request header name occurs only once in each request.",
"description": "Removes the request header of the specified name. Do not use SetRequestHeader and RemoveRequestHeader with the same header name on the same request. Each request header name occurs only once in each request.",
"description": "HTTP request header name (case-insensitive)."
}
}
},
{
"id": "declarativeWebRequest.AddResponseHeader",
"description": "Adds the response header to the response of this web request. As multiple response headers may share the same name, you need to first remove and then add a new response header in order to replace one.",
"description": "If set, rules with a lower priority than the specified value are ignored. This boundary is not persisted, it affects only rules and their actions of the same network request stage."
}
}
},
{
"id": "declarativeWebRequest.RequestCookie",
"description": "A filter or specification of a cookie in HTTP Requests.",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of a cookie.",
"optional": true
},
"value": {
"type": "string",
"description": "Value of a cookie, may be padded in double-quotes.",
"optional": true
}
}
},
{
"id": "declarativeWebRequest.ResponseCookie",
"description": "A specification of a cookie in HTTP Responses.",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of a cookie.",
"optional": true
},
"value": {
"type": "string",
"description": "Value of a cookie, may be padded in double-quotes.",
"optional": true
},
"expires": {
"type": "string",
"description": "Value of the Expires cookie attribute.",
"optional": true
},
"maxAge": {
"type": "number",
"description": "Value of the Max-Age cookie attribute",
"optional": true
},
"domain": {
"type": "string",
"description": "Value of the Domain cookie attribute.",
"optional": true
},
"path": {
"type": "string",
"description": "Value of the Path cookie attribute.",
"optional": true
},
"secure": {
"type": "string",
"description": "Existence of the Secure cookie attribute.",
"optional": true
},
"httpOnly": {
"type": "string",
"description": "Existence of the HttpOnly cookie attribute.",
"description": "A filter of a cookie in HTTP Responses.",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of a cookie.",
"optional": true
},
"value": {
"type": "string",
"description": "Value of a cookie, may be padded in double-quotes.",
"optional": true
},
"expires": {
"type": "string",
"description": "Value of the Expires cookie attribute.",
"optional": true
},
"maxAge": {
"type": "number",
"description": "Value of the Max-Age cookie attribute",
"optional": true
},
"domain": {
"type": "string",
"description": "Value of the Domain cookie attribute.",
"optional": true
},
"path": {
"type": "string",
"description": "Value of the Path cookie attribute.",
"optional": true
},
"secure": {
"type": "string",
"description": "Existence of the Secure cookie attribute.",
"optional": true
},
"httpOnly": {
"type": "string",
"description": "Existence of the HttpOnly cookie attribute.",
"optional": true
},
"ageUpperBound": {
"type": "integer",
"description": "Inclusive upper bound on the cookie lifetime (specified in seconds after current time). Only cookies whose expiration date-time is in the interval [now, now + ageUpperBound] fulfill this criterion. Session cookies and cookies whose expiration date-time is in the past do not meet the criterion of this filter. The cookie lifetime is calculated from either 'max-age' or 'expires' cookie attributes. If both are specified, 'max-age' is used to calculate the cookie lifetime.",
"minimum": 0,
"optional": true
},
"ageLowerBound": {
"type": "integer",
"description": "Inclusive lower bound on the cookie lifetime (specified in seconds after current time). Only cookies whose expiration date-time is set to 'now + ageLowerBound' or later fulfill this criterion. Session cookies do not meet the criterion of this filter. The cookie lifetime is calculated from either 'max-age' or 'expires' cookie attributes. If both are specified, 'max-age' is used to calculate the cookie lifetime.",
"minimum": 0,
"optional": true
},
"sessionCookie": {
"type": "boolean",
"description": "Filters session cookies. Session cookies have no lifetime specified in any of 'max-age' or 'expires' attributes.",
"optional": true
}
}
},
{
"id": "declarativeWebRequest.AddRequestCookie",
"description": "Adds a cookie to the request or overrides a cookie, in case another cookie of the same name exists already. Note that it is preferred to use the Cookies API because this is computationally less expensive.",
"description": "Cookie to be added to the request. No field may be undefined."
}
}
},
{
"id": "declarativeWebRequest.AddResponseCookie",
"description": "Adds a cookie to the response or overrides a cookie, in case another cookie of the same name exists already. Note that it is preferred to use the Cookies API because this is computationally less expensive.",
"description": "Cookie to be added to the response. The name and value need to be specified."
}
}
},
{
"id": "declarativeWebRequest.EditRequestCookie",
"description": "Edits one or more cookies of request. Note that it is preferred to use the Cookies API because this is computationally less expensive.",
"description": "Filter for cookies that will be modified. All empty entries are ignored."
},
"modification": {
"$ref": "declarativeWebRequest.RequestCookie",
"description": "Attributes that shall be overridden in cookies that machted the filter. Attributes that are set to an empty string are removed."
}
}
},
{
"id": "declarativeWebRequest.EditResponseCookie",
"description": "Edits one or more cookies of response. Note that it is preferred to use the Cookies API because this is computationally less expensive.",
"description": "Removes one or more cookies of request. Note that it is preferred to use the Cookies API because this is computationally less expensive.",
"description": "Removes one or more cookies of response. Note that it is preferred to use the Cookies API because this is computationally less expensive.",