feat: add bypassCustomProtocolHandlers option to net.request (#47331)

* feat: add bypassCustomProtocolHandlers option to net.request

* style: fix lint errors in api-protocol-spec
This commit is contained in:
Kai
2025-11-11 05:37:29 +08:00
committed by GitHub
parent 4951b96235
commit bc86e68a72
3 changed files with 24 additions and 1 deletions

View File

@@ -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