Skip to main content

Crate fslite_server

Crate fslite_server 

Source
Expand description

HTTP adapter exposing fslite_core::FileSystem as a resource-oriented API.

Modules§

range
Pure-function resolution of the HTTP Range: bytes=... header against a known content length. No axum/HTTP types are involved here — this module is unit-tested standalone in tests/range.rs.

Structs§

AppState
Shared, cloneable application state handed to every route.
AuthenticatedActor
The workspace and capabilities a credential resolves to.
BearerTokenAuthProvider
A static bearer-token credential store: Authorization: Bearer <token>.
Ctx
An extractor that authenticates the request and enforces that the authenticated actor’s workspace matches the {workspace_id} path segment.
RequestId
The per-request correlation id, available to handlers via Extension<RequestId>.
SqliteWorkspaceAdmin
Adapts SqliteFileSystem’s inherent workspace methods to WorkspaceAdmin.

Enums§

ApiError
The uniform error type every fslite-server handler returns.

Traits§

AuthProvider
Resolves inbound request headers to an authenticated actor.
WorkspaceAdmin
Workspace lifecycle operations. Not part of fslite_core::FileSystem (creating/naming a workspace is backend-specific), so fslite-server defines its own narrow trait and adapts each backend to it explicitly rather than downcasting Arc<dyn FileSystem>.

Functions§

app
Builds the complete application router from shared state.