How do I extract the response body from an httpx GET request? or What's the best way to access the ht

22 Replies, 2200 Views

Wow, thanks everyone! Didn’t realize `.body` wasn’t a thing in httpx. Tried `response.text` and it worked perfectly.

Follow-up: What if the encoding’s weird? Some characters look broken. Should I mess with `response.encoding` or just stick with `.content` and decode manually?

Also, big thanks for the `.json()` tip—saved me a bunch of time!

Messages In This Thread



Users browsing this thread: 1 Guest(s)