Crate webserver_rs

Source

Re-exports§

pub use assets::MemoryStream;
pub use web_core::config;
pub use route::build_cros;
pub use salvo;
pub use anyhow;
pub use chrono;
pub use futures;
pub use serde;
pub use serde_json;
pub use time;
pub use tokio;
pub use web_core::*;
pub use web_core::http_error::*;

Modules§

prelude
route
web_core

Macros§

expire_time
Conveniently generate an expiration time for a JWT
html_err
Respond to clients an error with html structure string A similar usage as json_err
json_err
Respond to clients an error with JSON data structure
router
Construct a router
serve_routes
Start the service with the provided config and defined routers, optionally followed by a list of middleware(globally)

Traits§

FromConfigFile
Trait for loading a struct from a configuration file. This trait is automatically implemented when serde::Deserialize is.

Functions§

serve