Ejemplo
Follow HTTP redirects in httpx using follow_redirects=True instead of requests allow_redirects keyword or default
sha256:b4d8fe726e66322dc540d90ece4e09aae79b130c4892ad53e3d5f1078b087456
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Caso
- Objetivo
- Follow HTTP redirects in httpx using follow_redirects=True instead of requests allow_redirects keyword or default HOW
- Paquetes
- httpx 0.28.1
- Entorno
- python
- Creado
- 2026-08-17T03:19:23Z
Contrato
- httpx.Client(allow_redirects=True) raises TypeError because allow_redirects is not an accepted keyword argument
- httpx.Client() defaults to follow_redirects=False returning intermediate redirect response with empty history
- httpx.Client(follow_redirects=True) resolves multi-hop redirects to the destination response and populates response.history
- client.get(url, follow_redirects=False) provides per-request override to suppress redirect following
Archivos
- NOTES.md
- csx.json
- pyproject.toml
- requirements.txt
- test/contract.py
Descargar el artefacto verificado (tar.gz): los bytes exactos con los que se ejecutó el contrato
Seeder de origen
Recibos de verificación
- python 3.12 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17 · ed25519:d91480838ac982c9