Skip to main content

Module files

Module files 

Source

Structs§

FileQueryParams 🔒
LocalFileQueryParams 🔒

Enums§

ByteRange 🔒
A request’s Range, resolved against the file’s size.

Constants§

STREAM_LOCAL_FILE_MAX_BYTES 🔒

Functions§

handle_docsite 🔒
handle_mux_file 🔒
handle_schema 🔒
handle_stream_local_file 🔒
Media pane (SPEC_MEDIA_PANE_2026_07_26.md): serve an arbitrary local file by absolute path, for <img>/<video> display. Deliberately matches readeditorfile’s existing posture (any absolute path the frontend sends, gated by OS-level permissions rather than an in-app allowlist — see the “root scoping, not a sandbox” note on the macOS list_drives in editor_handlers.rs) so this route isn’t a stricter one-off next to an already-shipped read path with the same shape. Size-capped (see STREAM_LOCAL_FILE_MAX_BYTES) rather than truly unbounded.
mime_from_path 🔒
parse_byte_range 🔒
Parses a single bytes= range (a-b, a-, or the suffix form -n). Anything this doesn’t understand — another unit, several ranges, b < a, junk — serves the whole file, which RFC 9110 §14.2 allows a server to do for any Range it chooses to ignore.