Replies: 1 comment
-
You'd need to do the investigation here yourself, looking into the interaction between the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm seeking for using WebSocket over HTTP2 (https://datatracker.ietf.org/doc/html/rfc8441), via httpx or some other python http2 library.
Basically create such a message flow (TLDR), however, I cannot send the :protocol pseudo header via httpx, as it added some other headers ahead, and raise "httpx.LocalProtocolError: Received pseudo-header field out of sequence: b':protocol'"
Is there a way to send out the :protocol header in httpx? If not today, can an API be provided?
[[ From Client ]] [[ From Server ]]
HEADERS + END_HEADERS
:method = CONNECT
:protocol = websocket
:scheme = https
:path = /chat
:authority = server.example.com
sec-websocket-protocol = chat, superchat
sec-websocket-extensions = permessage-deflate
sec-websocket-version = 13
origin = http://www.example.com
DATA
WebSocket Data
DATA + END_STREAM
WebSocket Data
Beta Was this translation helpful? Give feedback.
All reactions