Method to maintain a session with httpx similar to requests #2887
-
Hello, session = requests.Session()for login authentication and such. client = httpx.Client()in httpx as well. Sorry for the long introduction, I’m using AI for translation. I apologize if it’s hard to read! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi! |
Beta Was this translation helpful? Give feedback.
Hi!
If you want to use the client constantly, it is completely okay to create it and never close it.