반응형 multipart1 [Python] HTTPX: 파이썬 HTTP 클라이언트 목차 · HTTPX란? · 시작하기 · 사용법 HTTPX란? · sync, async API들을 제공하고, HTTP1.1과 HTTP/2를 모두 제공하는 완전한 기능을 갖춘 파이썬 3를 위한 클라이언트 · 파이썬 3.6 이상 버전에서 사용할 수 있다. 시작하기 설치 $ pip install httpx - HTTP/2를 지원하고 싶다면, $ pip install httpx[http2] - brotli decoder를 지원하고 싶다면, $ pip install httpx[brotli] 간단한 예제 import httpx response = httpx.get('https://www.example.org/') print("response:", response) print("response.status_code:".. 2022. 4. 28. 이전 1 다음 반응형