5th June 2025 at 12:00am
Get the content of a static file. See using the integrated static file server
GET /files/<pathname>Parameters:
- pathname - URI encoded path to the file
Headers:
- Range - New in v5.3.7 (optional) Request specific byte ranges using the format
bytes=start-end. Supports partial content delivery for media streaming.
Response:
- 200 OK
Content-Type: <content-type>(determined from file extension)Content-Length: <file-size>Accept-Ranges: bytesBody: complete file data - 206 Partial Content (when Range header is provided)
Content-Type: <content-type>(determined from file extension)Content-Length: <range-size>Content-Range: bytes <start>-<end>/<total-size>Accept-Ranges: bytesBody: requested byte range data - 403 Forbidden
- 404 Not Found