sendgrid-nodejs icon indicating copy to clipboard operation
sendgrid-nodejs copied to clipboard

Feature Request: Ability to specify http.Agent in configuration

Open sluramod opened this issue 5 years ago • 1 comments

Issue Summary

We are using sendgrid api in firebase environment. firebase cloud functions have various quotas, including quotas for outbound connections. The document is here: https://firebase.google.com/docs/functions/networking#maintaining_persistent_connections Right now there is no way to specify httpAgent to use in sendgrid configuration.

Technical details:

Ideally, it would be great to do something like this:

const httpAgent = new https.Agent({ keepAlive: true });

sendgrid.setHttpAgent(httpAgent)
...
sendgrid.send({args})

sluramod avatar Dec 09 '20 21:12 sluramod

Pull requests to add this feature are welcome and will be reviewed based on priority, but Twilio SendGrid is not actively building new functionality for the library.

JenniferMah avatar Dec 12 '20 00:12 JenniferMah