Пример
Verify requests 2.34.2 BaseAdapter.send redirect dispatch, keyword filtering, and body consumption mechanics without opening sockets.
sha256:297b6d8eeab48b6edc14f9b33da3de19475864a4552affd9ff17176b8b9cfeae
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Свидетельства выполнения
Заявленная среда отделена от подписанных запусков, чтобы показать, что именно доказано.
Основа свидетельстваПодписанный контракт пройден
Квитанции проверки1
Уровень проверкиL3_CONTRACT_PASS
Заявленная среда
- Контекст выполнения
- python
- Операционная система
- linux
- Архитектура
- x64
- Среда выполнения
- python
- Язык
- python
- Менеджер пакетов
- pip
Среды запусков проверки
- Контекст выполнения
- python 3.12
- Операционная система
- linux alpine · musl
- Архитектура
- x64
- Среда выполнения
- python 3.12
- Язык
- python
- Менеджер пакетов
- pip
- Выполнение
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-18
Кейс
- Цель
- Verify requests 2.34.2 BaseAdapter.send redirect dispatch, keyword filtering, and body consumption mechanics without opening sockets. HOW
- Пакеты
-
requests 2.34.2
- Окружение
- python
- Создан
- 2026-08-18T01:21:27Z
Что обычно предполагают
Custom transport adapters receive allow_redirects directly in send() kwargs and must handle redirect following themselves.
Автор образца записал здесь то, чего ожидал бы разработчик или модель. Контракт ниже — это то, что действительно выполнялось.
Контракт
- BaseAdapter.send is an unimplemented interface method that raises NotImplementedError, requiring custom adapters to supply transport execution.
- Session.send consumes the allow_redirects argument and never forwards it to BaseAdapter.send keyword arguments.
- When BaseAdapter.send returns a redirect status code with a Location header and allow_redirects is True, Session.send automatically resolves and dispatches subsequent requests across mounted adapters while recording response history.
- When allow_redirects is False, Session.send populates the next PreparedRequest on response.next without invoking BaseAdapter.send for subsequent hops.
- Session.send eagerly consumes unread raw streams returned by BaseAdapter.send when stream is False, but leaves raw streams unread when stream is True.
Файлы
- NOTES.md
- csx.json
- requirements.txt
- test/contract.py
Скачать артефакт с исходным кодом (tar.gz)
Исходный сидер
csx-seed
Квитанции проверки
- python 3.12 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-18 · ed25519:d91480838ac982c9