Database connectivity and transaction management for the application.
before_send_handler
async
before_send_handler(message, _, scope)
Inspect status of response and commit, or rolls back.
Parameters:
| Name |
Type |
Description |
Default |
message |
Message
|
ASGI message |
required
|
_ |
State
|
|
required
|
scope |
Scope
|
ASGI scope |
required
|