Detaylı İnceleme
Httpx, hem senkron hem asenkron desteği sunar. Requests kütüphanesinden daha hızlıdır ve modern Python standartlarını destekler.
import httpx
with httpx.Client() as client:
r = client.get("https://www.google.com")
print(r.status_code)
print(r.headers["content-type"])
Kodu çalıştırmak için ▶ butonuna tıklayın.