api/download_work_dir_file.py.dox.md
download_work_dir_file.py API endpoint.download_work_dir_file.py because this directory is intentionally flat.download_work_dir_file.py owns the runtime implementation.download_work_dir_file.py.dox.md owns durable notes about responsibilities, contracts, side effects, and verification for that implementation.DownloadFile (ApiHandler)
get_methods(cls)async process(self, input: Input, request: Request) -> Outputstream_file_download(file_source, download_name, chunk_size=...): Create a streaming response for file downloads that shows progress in browser.make_disposition(download_name: str) -> strresolve_download_path(path: str) -> str: Resolve a requested download path and keep it within the runtime base dir.async fetch_file(path)helpers.api.ApiHandler; WebSocket handlers must derive from helpers.ws.WsHandler.DownloadFile is an ApiHandler.DownloadFile defines process(...).DownloadFile defines get_methods(...).api, base64, flask, helpers, helpers.api, io, mimetypes, os, pathlib, urllib.parse.mimetypes.guess_type, Response, quote, Path.resolve, Path, candidate.is_absolute, os.path.getsize, generate, download_name.encode.decode, candidate.resolve, resolve, resolved.relative_to, Exception, file.read, base64.b64encode.decode, file_source.tell, file_source.seek, ValueError, file_path.startswith, runtime.call_development_function.helpers.api.Response for non-JSON responses, files, redirects, or status-specific replies.tests/test_download_toast_regressions.pytests/test_office_canvas_setup.pyNo child DOX files.