aio-libs / aio-libs/aiohttp

Send 100-continue only when handler reads body

Offen
#8,877 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Python
Sterne
16.5k
Forks
2.4k
Ø Merge
17 Std. 22 Min.
Gemergte PRs (30 T.)
212

Beschreibung

Currently the default expect100 handler just sends 100-continue immediately.
We could improve this greatly and provide useful Expect functionality by default if we only sent the 100-Continue when the handler tries to read the body. This would mean, for example, that a redirect based on headers could be sent without the client needing to send the body (auth checks etc. would be a good example).

Currently, the code lives in web_urldispatcher.py. This will probably not be an easy task, as we may need to move some logic to the request object.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.