Re-exports§
pub use error_pages::*;
pub use log_placeholders::*;
pub use proxy_protocol::*;
pub use send_async_io::*;
pub use url_sanitizer::*;
Modules§
Structs§
- IpBlock
List - The IP blocklist
- Module
Cache - A highly optimized cache that stores modules according to server configuration
- Monoio
File Stream - A wrapper over Monoio’s
File
that implements aStream
trait. - NoServer
Verifier - A server certificate verifier that always returns a successful verification.
- Send
RwStream - A wrapper over struct implementing Tokio’s
AsyncRead
andAsyncWrite
(no need for struct to beSend
) that implementsStream
andSink
trait. - TtlCache
- A TTL cache
Constants§
- SERVER_
SOFTWARE - The web server software identifier
Functions§
- anti_
xss - Escapes some characters as HTML entities, preventing XSS vulnerabilities
- is_
localhost - Determines if the server configuration filter implies
localhost
. - match_
hostname - Matches the request hostname against a configured hostname
- match_
location - Matches the request location against a configured location
- replace_
header_ placeholders - sizify
- Converts the file size into a human-readable one