-
Notifications
You must be signed in to change notification settings - Fork 378
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
Support for specifying an http.Agent #402
Conversation
return mockAppWithAgent.delete(); | ||
}); | ||
|
||
it('should use the HTTP agent set in request', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it any different than 'should use the HTTP agent set in request' above. They look pretty similar.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The first one was for the HttpClient
class. This one's for AuthorizedHttpClient
, which is a subclass of the former. The child class has the ability to use the agent configured at app-level, but also supports overriding it at request-level. These tests verify this.
Hey @hiranya911, @Feiyang1 |
@danpe nothing concrete. As soon as the code review is done. |
go/firebase-admin-node-proxy
Tested with
mitmproxy
andtunnel2
:Sample request captured at
mitmproxy
: