Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send 100-continue only when handler reads body #8877

Open
Dreamsorcerer opened this issue Aug 25, 2024 · 0 comments
Open

Send 100-continue only when handler reads body #8877

Dreamsorcerer opened this issue Aug 25, 2024 · 0 comments
Milestone

Comments

@Dreamsorcerer
Copy link
Member

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.

@Dreamsorcerer Dreamsorcerer added this to the 4.0 milestone Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant