-
Notifications
You must be signed in to change notification settings - Fork 249
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 headers for http-proxy-agent
#175
Support headers for http-proxy-agent
#175
Conversation
🦋 Changeset detectedLatest commit: 301862f The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
packages/http-proxy-agent/README.md
Outdated
### new HttpProxyAgent(proxy: string | URL, options?: HttpProxyAgentOptions) | ||
|
||
The `HttpProxyAgent` class implements an `http.Agent` subclass that connects | ||
to the specified "HTTP(s) proxy server" in order to proxy HTTP and/or WebSocket |
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.
to the specified "HTTP(s) proxy server" in order to proxy HTTP and/or WebSocket | |
to the specified "HTTP(s) proxy server" in order to proxy HTTP |
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.
Fixed in 301862f
packages/http-proxy-agent/README.md
Outdated
|
||
The `HttpProxyAgent` class implements an `http.Agent` subclass that connects | ||
to the specified "HTTP(s) proxy server" in order to proxy HTTP and/or WebSocket | ||
requests. This is achieved by using the [HTTP `CONNECT` method][CONNECT]. |
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.
http-proxy-agent
does not use CONNECT
.
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.
Oops, I copy/pasted this part without thinking, good catch thanks! Fixed in 301862f
Thanks! |
Currently, HttpProxyAgent does not have a
headers
option at all. The HttpsProxyAgent does, though.This PR adds a
headers
option, allowing consumers to set the proxy headers statically or dynamically.Companion PR to update HttpsProxyAgent: #174