Skip to content

Context

faststream.broker.fastapi.context.Context #

Context(name: str) -> Any
Source code in faststream/broker/fastapi/context.py
def Context(name: str) -> Any:
    return params.Depends(
        lambda: context.resolve(name),
        use_cache=True,
    )