Home / Function/ close() — fastapi Function Reference

close() — fastapi Function Reference

Architecture documentation for the close() function in datastructures.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  76af83fd_46f7_5935_efc3_87a0773b471d["close()"]
  e7f7f9d0_3e61_b391_e95f_2212c3046b08["UploadFile"]
  76af83fd_46f7_5935_efc3_87a0773b471d -->|defined in| e7f7f9d0_3e61_b391_e95f_2212c3046b08
  2070de0b_f99d_ce4d_bb36_162d825290f1["test_upload_file()"]
  2070de0b_f99d_ce4d_bb36_162d825290f1 -->|calls| 76af83fd_46f7_5935_efc3_87a0773b471d
  style 76af83fd_46f7_5935_efc3_87a0773b471d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

fastapi/datastructures.py lines 126–132

    async def close(self) -> None:
        """
        Close the file.

        To be awaitable, compatible with async, this is run in threadpool.
        """
        return await super().close()

Domain

Subdomains

Called By

Frequently Asked Questions

What does close() do?
close() is a function in the fastapi codebase, defined in fastapi/datastructures.py.
Where is close() defined?
close() is defined in fastapi/datastructures.py at line 126.
What calls close()?
close() is called by 1 function(s): test_upload_file.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free