Skip to content

createConnection support #213

Description

@thammi

The Agent classes of http and https both have a createConnection() method which can be used to overwrite socket creation. http even supports createConnection as an option in request(). http2 does not support this part of the API and does not mention this difference in the API documentation.

It seems that implementing this for plain connections in http2 seems quite straight forward, but I have not fully understood the creation of connections for SSL in this library, yet.

PS: One use case for this is to tunnel the request through something like a VPN or SSH port forwarding by returning a socket-like object in createConnection

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions