Module util

Source

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Β§

IpBlockList
The IP blocklist
ModuleCache
A highly optimized cache that stores modules according to server configuration
MonoioFileStream
A wrapper over Monoio’s File that implements a Stream trait.
NoServerVerifier
A server certificate verifier that always returns a successful verification.
SendRwStream
A wrapper over struct implementing Tokio’s AsyncRead and AsyncWrite (no need for struct to be Send) that implements Stream and Sink 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