Hey! For the httpx get response body, you’ve got options:
- `.text` = human-readable text
- `.content` = raw bytes (for when text won’t cut it)
- `.json()` = auto-parsed JSON (super handy)
Also, don’t forget error handling!
```python
try:
response = httpx.get("https://example.com")
response.raise_for_status() # crashes if request failed
print(response.text)
except httpx.HTTPError as e:
print(f"Oops: {e}")
```
- `.text` = human-readable text
- `.content` = raw bytes (for when text won’t cut it)
- `.json()` = auto-parsed JSON (super handy)
Also, don’t forget error handling!
```python
try:
response = httpx.get("https://example.com")
response.raise_for_status() # crashes if request failed
print(response.text)
except httpx.HTTPError as e:
print(f"Oops: {e}")
```
