Expand description
Structs§
- Static
Response - A bounded static response selected from one packaged app artifact.
- Stream
Error - A bounded static error plus optional unsatisfied representation length.
- Stream
Response - A validated file slice that can be copied to a connection with bounded memory.
Constants§
Functions§
- byte_
range 🔒 - Parses one RFC 7233 byte range against a known representation length.
- cache_
control_ 🔒for_ path - Selects immutable caching only for filenames that visibly carry a content hash.
- content_
type_ 🔒for_ path - Parses the content type for path.
- file_
etag 🔒 - Creates a deterministic validator without reading the representation body.
- handle_
client 🔒 - Handles client.
- lookup_
route_ map - Looks up one GET route in the artifact route map.
- normalized_
path 🔒 - Performs normalized path.
- path_
has_ parent_ reference - Returns whether a request path contains a parent-directory component.
- percent_
decode_ 🔒path - Performs percent decode path.
- read_
file 🔒 - Reads file.
- request_
head 🔒 - Handles request head.
- resolve_
direct_ asset - Resolves a direct
/static/or/media/request under an artifact root. - response 🔒
- Performs response.
- response_
bytes 🔒 - Performs response bytes.
- run
- Runs the bounded loopback static-server binary for one packaged artifact.
- safe_
artifact_ 🔒path - Builds a safe artifact path.
- send_
all 🔒 - Sends all.
- send_
stream 🔒 - Streams one selected response body to the standalone static server client.
- serve_
artifact_ request - Serves one request from one app artifact root without invoking a shell or C runtime.
- serve_
private_ asset - Resolves one already-authorized private asset key into a streaming plan.
- serve_
streamable_ asset - Resolves a public static/media request into a bounded streaming plan.
- stream_
error 🔒 - Wraps one ordinary static error without range metadata.
- text_
error 🔒 - Performs text error.