Skip to content

Ch. 20, 'The HTTP module' part. #406

@Spiralfate

Description

@Spiralfate

There is a code snippet in making client's request article:

const {request} = require("http");
let requestStream = http.request({
...

Is it just me, or it should be just:
'let requestStream = request({'
since we have already extracted 'http.request' function and made it a value of 'request' binding?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions