Skip to content

Commit 0aee812

Browse files
committed
Update src/content/compatibility-flags/enable-nodejs-http-modules.md
1 parent 429aeb2 commit 0aee812

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/content/compatibility-flags/enable-nodejs-http-modules.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,19 @@ disable_flag: "disable_nodejs_http_modules"
1212
---
1313

1414
The `enable_nodejs_http_modules` flag enables the availability of Node.js
15-
`node:http` and `node:https` modules in Workers.
15+
`node:http` and `node:https` modules in Workers (client APIS only).
1616

1717
The `disable_nodejs_http_modules` flag disables the availability of these
1818
modules.
19+
20+
This enables compatibility with Node.js libraries and existing code that
21+
use the standard node:http and node:https APIs for making HTTP requests.
22+
The available functionality includes:
23+
24+
* `http.request()` and `https.request()` for making HTTP/HTTPS requests
25+
* `http.get()` and `https.get()` for making GET requests
26+
* Request and response objects with standard Node.js APIs
27+
* Support for standard HTTP methods, headers, and options
28+
29+
See the [Node.js documentation](https://nodejs.org/docs/latest/api/http.html)
30+
for more details about the Node.js APIs.

0 commit comments

Comments
 (0)