Replies: 1 comment 1 reply
-
Interesting, yes! Having the whole original |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
httpx-ws/httpx_ws/_api.py
Line 111 in 1e1c252
After successfully establishing a WebSocket connection, we can get the server's accepted subprotocol from
ws.subprotocol
.But, how about adding a method to get the response?
It could be beneficial.
Refer to starlette/websockets/#accepting-the-connection, there is a
headers
to responseIf we could get
response headers
from theWebSocketSession
, perhaps we could implement a transparent proxy server.Somethin like
How about:
Beta Was this translation helpful? Give feedback.
All reactions