ModulesΒ§
- anti_
xss π - config_
macros π - default_
html_ πpage - header_
placeholders π - ip_
blocklist π - is_
localhost π - match_
hostname π - match_
location π - module_
cache π - monoio_
file_ πstream - no_
server_ πverifier - send_
rw_ πstream - sizify π
- ttl_
cache π
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