Skip to main content

Module server

Module server 

Source
Expand description

Hyper v1 HTTP & HTTPS server implementing LocalSend v2.2 specification.

Re-exports§

pub use dufs::DufsConfig;
pub use dufs::DufsManager;
pub use dufs::DufsServerHandle;
pub use dufs::ServerResponseBody;
pub use handlers::extract_password_from_url;
pub use handlers::percent_decode;
pub use handlers::ServerState;
pub use handlers::ServerTransferEvent;
pub use router::route_request;
pub use router::ClientConnectionInfo;
pub use session::DownloadFile;
pub use session::DownloadManager;
pub use session::DownloadSession;
pub use session::FileTransferStatus;
pub use session::PrepareUploadDecision;
pub use session::SessionEndReason;
pub use session::SessionFile;
pub use session::SessionManager;

Modules§

dufs
Dufs-alike static file and directory server for LanFlare peers on the local network.
handlers
HTTP request handlers for LocalSend v2.2 endpoints.
router
Hyper router dispatching incoming HTTP requests to LocalSend v2.2 and Dufs file server handlers.
session
Transfer session state and PIN protection for the LocalSend HTTP server.

Structs§

ServerConfigHolder
Helper wrapper allowing start_server to accept either AppConfig or Arc<RwLock>.
ServerHandle
Handle representing a running HTTP/HTTPS server instance.

Functions§

start_server
Starts an HTTP/HTTPS server listening on the configured address.
start_server_ext
Extended server launcher permitting injected download and dufs managers.