sse
sse copied to clipboard
Custom http.Client?
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?
You can set the Headers field on an object of type sse.Client before use it