Skip to content

[JavaScript] Allow to use a custom http agent #6736

@kinok

Description

@kinok
Description

We need to be able to use a custom http agent while requesting our API using swagger generated code.
In our case it is mainly to use keep-alive as we make call to swagger generated code.

Swagger-codegen version

2.3.0

Suggest a fix/enhancement

Add a requestAgent property in ApiClient module if set by user then use it as the request agent

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