Hello! Is there a way to add custom HTTP headers t...
# http4k
j
Hello! Is there a way to add custom HTTP headers to the 101 Switching Protocols response when responding to a Websocket connection request in http4k?
d
not currently - this is because (unlike SSE) I don't think we've ever found a way in the underlying server APIs to actually set them. Happy to be schooled though 🙂
👍 1
thank you color 1
a
Iirc, all the WS server implementations have very different ways of accepting the connections, and might not even give the capability to set headers. If we did it for some, we might not be able to support it for all servers. Worth looking into though.
d
It's all wonky! 😂