feat: add bypassCustomProtocolHandlers option to net.request (#48882)
* feat: add bypassCustomProtocolHandlers option to net.request Co-authored-by: Kai <udbmnm@163.com> * style: fix lint errors in api-protocol-spec Co-authored-by: Kai <udbmnm@163.com> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Kai <udbmnm@163.com>
This commit is contained in:
parent
bb930b887b
commit
b5f19ce974
3 changed files with 24 additions and 1 deletions
|
|
@ -25,6 +25,11 @@ following properties:
|
|||
with which the request is associated. Defaults to the empty string. The
|
||||
`session` option supersedes `partition`. Thus if a `session` is explicitly
|
||||
specified, `partition` is ignored.
|
||||
* `bypassCustomProtocolHandlers` boolean (optional) - When set to `true`,
|
||||
custom protocol handlers registered for the request's URL scheme will not be
|
||||
called. This allows forwarding an intercepted request to the built-in
|
||||
handler. [webRequest](web-request.md) handlers will still be triggered
|
||||
when bypassing custom protocols. Defaults to `false`.
|
||||
* `credentials` string (optional) - Can be `include`, `omit` or
|
||||
`same-origin`. Whether to send
|
||||
[credentials](https://fetch.spec.whatwg.org/#credentials) with this
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue