File
class¶
Warning
The current page still doesn't have a translation for this language.
But you can help translating it: Contributing.
esmerald.datastructures.file.File
¶
Bases: ResponseContainer[FileResponse]
filename
instance-attribute
¶
filename
The name of the file to be added to the Content-Disposition
attachment.
to_response
¶
to_response(headers, media_type, status_code, app)
PARAMETER | DESCRIPTION |
---|---|
headers
|
TYPE:
|
media_type
|
TYPE:
|
status_code
|
TYPE:
|
app
|
TYPE:
|
Source code in esmerald/datastructures/file.py
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
|