https://github.com/pydantic/httpx2
import httpx2
r = httpx2.get('https://www.example.org/')
r.status_code
r.headers['content-type']
r.text