Skip to content

http(s) agent docs for createConnection don't reflect reality #58131

Open
@tkennedy1-godaddy

Description

@tkennedy1-godaddy

Affected URL(s)

https://nodejs.org/docs/latest/api/http.html#agentcreateconnectionoptions-callback

Description of the problem

In http agents, the createConnection function is a direct passthrough to net.connect, which the function signature does not take, nor call a callback.

In https agents, the createConnection function has a wildly different signature, but the https docs say "it's the same as the http" agent. But again, there is no callback for this function and none is called.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions