Skip to content

Commit

Permalink
Remove reference to mode: "websocket" in RequestInit (mdn#36200)
Browse files Browse the repository at this point in the history
In https://fetch.spec.whatwg.org/#request-class, there's an explicit note that this value is excluded from the `RequestMode` enum as it's not intended to be observable from JS.
  • Loading branch information
dead-claudia authored Oct 5, 2024
1 parent 1cefd23 commit 4f0efd0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions files/en-us/web/api/requestinit/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,6 @@ You can also construct a `Request` with a `RequestInit`, and pass the `Request`
- : The request must be a [simple request](/en-US/docs/Web/HTTP/CORS#simple_requests), which restricts the headers that may be set to {{glossary("CORS-safelisted request header", "CORS-safelisted request headers")}}, and restricts methods to `GET`, `HEAD`, and `POST`.
- `navigate`
- : Used only by HTML navigation. A `navigate` request is created only while navigating between documents.
- `websocket`
- : Used only when establishing a [WebSocket](/en-US/docs/Web/API/WebSockets_API) connection.

See [Making cross-origin requests](/en-US/docs/Web/API/Fetch_API/Using_Fetch#making_cross-origin_requests) for more details.

Expand Down

0 comments on commit 4f0efd0

Please sign in to comment.