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

Custom http.Client? #161

Open
codewinch opened this issue May 13, 2023 · 1 comment
Open

Custom http.Client? #161

codewinch opened this issue May 13, 2023 · 1 comment

Comments

@codewinch
Copy link
Contributor

codewinch commented May 13, 2023

Currently, NewClient does not provide a direct option to pass a custom HTTP client. A custom HTTP client would allow setting arbitrary headers (such as Authorization or cookies) before initiating the connection.

There are also some other issues requesting custom methods other than just GET. What if there was a NewAdvancedClient function with a more flexible and advanced API to allow these more unusual cases?

@fpawel
Copy link

fpawel commented Jul 20, 2023

You can set the Headers field on an object of type sse.Client before use it

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

No branches or pull requests

2 participants