Support cookie-authenticated httpx client #26
Unanswered
davidbrochart
asked this question in
Q&A
Replies: 1 comment 6 replies
-
Normally, async with httpx.AsyncClient() as client:
try:
async with aconnect_ws("http://localhost:8000/ws", client) as ws:
message = await ws.receive_text()
print(message)
await ws.send_text("Hello!")
except WebSocketUpgradeError as e:
print(e.response.request.headers) |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am passing a cookie-authenticated
httpx.AsyncClient
toaconnect_ws
, but it seems that the cookie is not taken into account because I get a 403.Could it be that this is not implemented yet in
http-ws
?Beta Was this translation helpful? Give feedback.
All reactions