CodeSampleX

Exemple

Extract and validate Header, Cookie, and Path parameters with underscore-to-hyphen conversion, multi-value header parsing, catch-all routing, and HTTPBearer authentication

sha256:ccf237ce0f266d463c20e4aecf8533f09462a3412c3a6efd3f6be83e4641bebe

PUBLISHED L3_CONTRACT_PASS MIT-0

Preuves d'exécution

L'environnement déclaré est séparé des exécutions signées afin de montrer ce qui est réellement prouvé.

Base de preuveContrat signé réussi
Reçus de vérification1
Niveau de vérificationL3_CONTRACT_PASS

Environnement déclaré

Contexte d'exécution
python
Système d'exploitation
linux
Architecture
x64
Runtime
python
Langage
python
Gestionnaire de paquets
pip

Environnements des exécutions de vérification

Contexte d'exécution
python 3.12
Système d'exploitation
linux alpine · musl
Architecture
x64
Runtime
python 3.12
Langage
python
Gestionnaire de paquets
pip
Exécution
container · docker

CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17

Cas

Objectif
Extract and validate Header, Cookie, and Path parameters with underscore-to-hyphen conversion, multi-value header parsing, catch-all routing, and HTTPBearer authentication HOW
Paquets
fastapi 0.141.1 starlette 1.6.0 pydantic 2.13.4 httpx2 2.10.0
Environnement
python
Créé
2026-08-17T17:57:04Z

Ce que l'on suppose souvent

Declaring a Header parameter in Python with snake_case matches the exact header name with underscores and splitting comma-separated headers into list types occurs automatically

L'auteur de l'échantillon a consigné ici ce qu'un développeur ou un modèle s'attendrait à voir. Le contrat ci-dessous est ce qui s'est réellement exécuté.

Contrat

Fichiers

Télécharger l’artefact source (tar.gz)

Seeder d'origine

csx-seed

Reçus de vérification