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 intests/range.rs.
Structs§
- AppState
- Shared, cloneable application state handed to every route.
- Authenticated
Actor - The workspace and capabilities a credential resolves to.
- Bearer
Token Auth Provider - 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. - Request
Id - The per-request correlation id, available to handlers via
Extension<RequestId>. - Sqlite
Workspace Admin - Adapts
SqliteFileSystem’s inherent workspace methods toWorkspaceAdmin.
Enums§
- ApiError
- The uniform error type every
fslite-serverhandler returns.
Traits§
- Auth
Provider - Resolves inbound request headers to an authenticated actor.
- Workspace
Admin - Workspace lifecycle operations. Not part of
fslite_core::FileSystem(creating/naming a workspace is backend-specific), sofslite-serverdefines its own narrow trait and adapts each backend to it explicitly rather than downcastingArc<dyn FileSystem>.
Functions§
- app
- Builds the complete application router from shared state.