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

feat(asgi,fastapi,starlette)!: provide both send and receive hooks with scope and message #2546

Merged
merged 1 commit into from
Jun 3, 2024

Commits on Jun 3, 2024

  1. feat(asgi,fastapi,starlette)!: provide both send and receive hooks wi…

    …th `scope` and `message`
    
    Currently, a «receive» hook is only provided with `scope`, but not `message`. On contrary, a «send» hook is only provided with `message`, but not `scope`.
    
    This change unifies the both hooks and provides them with additional request info.
    
    This is a breaking change:
    
    - The hooks will now be provided with one more positional argument
    - `client_request_hook` will be called _after_ `receive()` instead of _before_ `receive()`
    eigenein committed Jun 3, 2024
    Configuration menu
    Copy the full SHA
    8010527 View commit details
    Browse the repository at this point in the history