sse icon indicating copy to clipboard operation
sse copied to clipboard

Custom http.Client?

Open codewinch opened this issue 2 years ago • 1 comments
trafficstars

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?

codewinch avatar May 13 '23 18:05 codewinch

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

fpawel avatar Jul 20 '23 17:07 fpawel