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

add support for https proxy #548

Closed
wants to merge 1 commit into from
Closed

Conversation

jhaynie
Copy link

@jhaynie jhaynie commented Oct 10, 2019

This PR adds support for using websockets behind an https proxy. You can test by setting the env variable HTTP_PROXY to a proxy server and attempting to use the websocket library as normal.

@robindiddams
Copy link

this would be really great 🙏

Copy link
Contributor

@elithrar elithrar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two major parts:

  • Need to document the public API
  • Needs tests

type tlsDialer struct {
}

func (t *tlsDialer) Dial(network, addr string) (c net.Conn, err error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Public methods need documentation as to their use-case.

@elithrar elithrar self-assigned this Mar 19, 2020
@elithrar elithrar removed their assignment Aug 22, 2020
costanic added a commit to PelionIoT/edge-proxy that referenced this pull request Jan 13, 2021
costanic added a commit to costanic/websocket that referenced this pull request Jan 13, 2021
costanic added a commit to PelionIoT/edge-proxy that referenced this pull request Jan 14, 2021
the fork has support for https proxies:
    gorilla/websocket#548

we should switch back to the gorilla/websocket project when
this PR is merged and a new release tagged.
costanic added a commit to PelionIoT/edge-proxy that referenced this pull request Jan 14, 2021
the fork has support for https proxies:
    gorilla/websocket#548

we should switch back to the gorilla/websocket project when
this PR is merged and a new release tagged.
costanic added a commit to PelionIoT/edge-proxy that referenced this pull request Jan 20, 2021
the fork has support for https proxies:
    gorilla/websocket#548

we should switch back to the gorilla/websocket project when
this PR is merged and a new release tagged.
@jhaynie jhaynie closed this Feb 4, 2021
@elig-salt
Copy link

whyy, I need this :(
Thanks for the effort!

JanneKiiskila pushed a commit to PelionIoT/websocket that referenced this pull request May 28, 2024
Cherry-picking the proxy support from v1.4.2-1 tag.

gorilla#548
(cherry picked from commit 9b1460a)
Signed-off-by: Janne Kiiskilä <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants