Skip to content

ASGI, FastAPI, Starlette: provide both send and receive hooks with scope and message #2560

@eigenein

Description

@eigenein

Is your feature request related to a problem?

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. In particular, it makes it impossible for a receive hook to inspect events.

Describe the solution you'd like

Unify both hooks so that they both would accept the both parameters.

Additional context

The feature request is already implemented in this PR: #2546

This is going to be a breaking change, since the hooks will accept additional parameters.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions