__call__() — fastapi Function Reference
Architecture documentation for the __call__() function in test_custom_middleware_exception.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 4014ea23_5fbb_eb4b_c698_f3833bb20f2e["__call__()"] 74723938_6a55_2853_752f_6576aa5c1d17["ContentSizeLimitMiddleware"] 4014ea23_5fbb_eb4b_c698_f3833bb20f2e -->|defined in| 74723938_6a55_2853_752f_6576aa5c1d17 d268a417_9bb1_869f_1b2d_baf49422f22c["receive_wrapper()"] 4014ea23_5fbb_eb4b_c698_f3833bb20f2e -->|calls| d268a417_9bb1_869f_1b2d_baf49422f22c style 4014ea23_5fbb_eb4b_c698_f3833bb20f2e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_custom_middleware_exception.py lines 48–54
async def __call__(self, scope, receive, send):
if scope["type"] != "http" or self.max_content_size is None:
await self.app(scope, receive, send)
return
wrapper = self.receive_wrapper(receive)
await self.app(scope, wrapper, send)
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does __call__() do?
__call__() is a function in the fastapi codebase, defined in tests/test_custom_middleware_exception.py.
Where is __call__() defined?
__call__() is defined in tests/test_custom_middleware_exception.py at line 48.
What does __call__() call?
__call__() calls 1 function(s): receive_wrapper.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free