Fused sync handler — bypasses ASGI for simple request-response paths.
server.sync_handler
| Name | Type | Default | Description |
|---|---|---|---|
type
|
|
— | |
qualified_name
|
|
— | |
element_type
|
|
— | |
description
|
|
— | |
source_file
|
|
— | |
line_number
|
|
— | |
is_autodoc
|
|
— | |
autodoc_element
|
|
— | |
_autodoc_template
|
|
— | |
_autodoc_url_path
|
|
— | |
_autodoc_page_type
|
|
— | |
title
|
|
— | |
doc_content_hash
|
|
— |
Symbols on this page
handle_sync
function
def handle_sync(raw: RawRequest, router: Router, middleware: tuple[Any, ...], providers: dict[type, Any] | None) -> RawResponse | None
Handle a sync request via the fused path.
Returns RawResponse for sync handling, or None to fall through to ASGI. Requires no middleware (middleware bypasses sync path).
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
raw
|
RawRequest
|
— | |
router
|
Router
|
— | |
middleware
|
tuple[Any, ...]
|
— | |
providers
|
dict[type, Any] | None
|
— |
_build_sync_kwargs
function
def _build_sync_kwargs(plan: InvokePlan, request: SyncRequest | None, path_params: dict[str, str], providers: dict[type, Any] | None) -> dict[str, Any]
Build kwargs for sync handler from InvokePlan.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
plan
|
InvokePlan
|
— | |
request
|
SyncRequest | None
|
— | |
path_params
|
dict[str, str]
|
— | |
providers
|
dict[type, Any] | None
|
— |
View source · /home/runner/work/chirp/chirp/site/../src/chirp/server/sync_handler.py:1