Replies: 2 comments 1 reply
-
@tomchristie @florimondmanca SOS |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks. I've escalated this into a documentation issue. See #2599. Are the We also have some upcoming improvements to our logging in PRs #2547 and encode/httpcore#648. Those would add some information about when the SSL is established, but don't (currently?) include the exact information you're requesting here. |
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
-
Hi!
i have this code:
async with httpx.AsyncClient(verify=False if not ca_bundle else ca_bundle, timeout=timeout) as client:
rsp = await client.request( method="GET", url=url, headers=headers )
ca_bundle is a path like /tmp/ca_bundle
timeout = 30.0
Everything is ok, i get response but the main question is what i should add in my code to have in log strings like:
console.print(f"* SSL established using {version!r} / {cipher[0]!r}")
This line from def trace from httpx/_main.py
I found that in client.request i can add parameter
extensions
, but i can't really understand what to pass inI tried to use TRACE logging type - doesn't work for me. I see only this lines.
![image](https://user-images.githubusercontent.com/22861657/213939008-207dc0cc-8113-42be-a675-cf1c9a220722.png)
Beta Was this translation helpful? Give feedback.
All reactions