Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Expose closing and destroying the client #5

Merged
merged 8 commits into from
Feb 20, 2024

Conversation

AndrewBarba
Copy link
Owner

@AndrewBarba AndrewBarba commented Feb 20, 2024

  1. Add support for keepAlive: false which will not cache client instances and close them on each request
  2. Expose res.close() to close the underlying request/response
  3. Expose res.destroy() the destroy the underlying request/response and the underlying http client

@AndrewBarba AndrewBarba mentioned this pull request Feb 20, 2024
@AndrewBarba AndrewBarba merged commit 62dbdf8 into main Feb 20, 2024
3 checks passed
@AndrewBarba AndrewBarba deleted the barba/req-close-destroy branch February 20, 2024 22:19
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant