Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
directly import http
  • Loading branch information
todortotev committed May 22, 2021
commit 55a3ca82585107292590232940b9881ff619b45d
2 changes: 2 additions & 0 deletions doc/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -2898,6 +2898,8 @@ class. The `ClientRequest` instance is a writable stream. If one needs to
upload a file with a POST request, then write to the `ClientRequest` object.

```js
const http = require("http")
Comment thread
todortotev marked this conversation as resolved.
Resolved

const postData = querystring.stringify({
'msg': 'Hello World!'
});
Expand Down