Skip to content

Add createConnection option for http or https requests #119

@xv2

Description

@xv2

Hi,
I need a possibility of using createConnection option in the http/https request:

createConnection A function that produces a socket/stream to use for the request when the agent option is not used. This can be used to avoid creating a custom Agent class just to override the default createConnection function. See agent.createConnection() for more details. Any Duplex stream is a valid return value.

You can read more info about this function in the Node.js documentation: https://nodejs.org/api/http.html#http_http_request_options_callback

NOTE: The createConnection of globalAgent isn't suitable for me because I use other connections

P.S. Thanks for your work and the best library for EventSource.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions