"How do I extract the httpx get response body properly?"
Hey folks,
I'm kinda stuck here. Trying to get the httpx get response body from a simple request, but it’s not working as expected.
I’m doing something like:
```python
response = httpx.get("https://example.com")
print(response.body) # ??
```
But it’s not giving me the data I want. Am I missing something obvious?
Also, is there a difference between `.text`, `.content`, and `.body`? Which one should I use for plain text/json?
Thanks in advance!
(PS: If this is a dumb question, sorry—new to httpx!)
Hey folks,
I'm kinda stuck here. Trying to get the httpx get response body from a simple request, but it’s not working as expected.
I’m doing something like:
```python
response = httpx.get("https://example.com")
print(response.body) # ??
```
But it’s not giving me the data I want. Am I missing something obvious?
Also, is there a difference between `.text`, `.content`, and `.body`? Which one should I use for plain text/json?
Thanks in advance!
(PS: If this is a dumb question, sorry—new to httpx!)
