app.main
Module Contents
Functions
|
|
|
|
|
|
|
Download file from server |
|
Attributes
- app.main.app
- async app.main.validation_exception_handler(request, err)
- app.main.templates
- async app.main.read_item(request: fastapi.Request, id: str)
- async app.main.read_item(request: fastapi.Request)
- app.main.get_file(name_file: str)
Download file from server
- Parameters
name_file (str) – file name expressed as <hash>.<extension>
- Raises
HTTPException – HTTP_404_NOT_FOUND if file was not found
- Returns
binary data of file
- Return type
stream
- async app.main.catch_all(request: fastapi.Request, path_name: str)