Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat: add fetch and httpAgent support (#288) #387

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Kartikayy007
Copy link

Description

Adds support for custom fetch implementations and Node.js httpAgent configuration per #288

Key changes:

  • Added fetch and httpAgent to RequestOptions interface
  • Implemented agent injection in request handler
  • Updated API documentation too

Testing

Verified with:

  • Custom fetch implementation with request logging
  • HTTP proxy agent in Node.js environment
  • Browser build without agent configuration
  • Type checking in TS projects

Security Notes

  • httpAgent enables proper SSRF protection through proxy configuration
  • Custom fetch allows request validation/redirection
  • Important: All tests using real API keys should be run in protected environments

@Kartikayy007
Copy link
Author

Kartikayy007 commented Mar 7, 2025

@manojssmk @hsubox76 @hkt74 please review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant