Skip to content

Commit

Permalink
chore: import global module
Browse files Browse the repository at this point in the history
  • Loading branch information
btea committed Aug 8, 2023
1 parent 6038092 commit f1e5b01
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,7 @@ A client server pair demonstrating how to listen for the `'upgrade'` event.

```mjs
import http from 'node:http';
import process from 'node:process';

// Create an HTTP server
const server = http.createServer((req, res) => {
Expand Down Expand Up @@ -3785,6 +3786,7 @@ upload a file with a POST request, then write to the `ClientRequest` object.

```mjs
import http from 'node:http';
import { Buffer } from 'node:buffer';

const postData = JSON.stringify({
'msg': 'Hello World!',
Expand Down

0 comments on commit f1e5b01

Please sign in to comment.