Class FileResponse
A streaming HTTP response class optimized for files.
Declaration
source linkDocumentation
Methods
▶ def __init__(self, *args, as_attachment=False, filename='', **kwargs) override ▷ def set_headers(self, filelike) Set some common response headers (Content-Length, Content-Type, and Content-Disposition) based on the `filelike` response content.