MCPcopy
hub / github.com/ag2ai/faststream / decorator

Function decorator

faststream/asgi/handlers.py:139–146  ·  view source on GitHub ↗
(inner_func: "UserApp")

Source from the content-addressed store, hash-verified

137 unique_id: str | None = None,
138) -> Union[Callable[["UserApp"], "GetHandler"], "GetHandler"]:
139 def decorator(inner_func: "UserApp") -> "GetHandler":
140 return GetHandler(
141 inner_func,
142 include_in_schema=include_in_schema,
143 description=description,
144 tags=tags,
145 unique_id=unique_id,
146 )
147
148 if func is None:
149 return decorator

Callers 2

getFunction · 0.85
postFunction · 0.85

Calls 2

GetHandlerClass · 0.85
PostHandlerClass · 0.85

Tested by

no test coverage detected