unmbt/http-server-mbt/core does not have a README file
pub(all) suberror ConfigError {
InvalidBaseUrl(String)
InvalidRoot(String)
InvalidPort(String)
InvalidTryFiles(String)
ConflictingBaseUrl(String)
ConflictingRouting(String)
InvalidProxy(String)
InvalidAuth(String)
InvalidHeader(String)
InvalidTimeout(String)
InvalidTls(String)
InvalidLimits(String)
} derive(Eq, Debug)impl Show for ConfigErrorpub(all) struct Config {
limits : RuntimeLimits
root : String
port : Int
address : String
base_url : String
default_ext : String?
spa : Bool
try_files : String?
gzip : Bool
brotli : Bool
force_content_encoding : Bool
auto_index : Bool
show_dir : Bool
show_dotfiles : Bool
dir_overrides_404 : Bool
cache_seconds : Int
cache_control : String?
weak_etags : Bool
weak_compare : Bool
cors : Bool
cors_headers : String?
coop : Bool
coop_header : String?
pna : Bool
basic_auth : (String, String)?
host_whitelist : Array[String]
custom_headers : Map[String, String]
robots : Bool
proxy : String?
proxy_all : String?
proxy_options : Map[String, String]
websocket : Bool
proxy_config : String?
cert_file : String?
key_file : String?
key_passphrase : String?
ca_file : String?
secure : Bool
handle_error : Bool
idle_timeout_ms : Int
mime_types : Map[String, String]
log_ip : Bool
silent : Bool
} derive(Debug)fn MimeRegistry::lookup(self : MimeRegistry, path_or_ext : String, default_type? : String) -> Stringfn apply_default_ext(path : String, default_ext : String) -> Stringfn base64_decode_string(input : StringView) -> String?fn crypto_equals(expected : String, actual : String) -> Boolfn extract_extension(path_or_filename : String) -> Stringfn extract_hostname(host_value : String) -> Stringfn format_content_range(start : Int64, end : Int64, total : Int64) -> Stringfn format_content_range_unsatisfiable(total : Int64) -> Stringfn format_dir_redirect(raw_path : String, raw_query : String?) -> Stringfn format_http_date(epoch_sec : Int64) -> Stringfn has_file_extension(path : String) -> Boolfn is_text_mime(mime : String) -> Boolfn match_and_strip_base_url(base_url : String, decoded_path : String) -> String?fn match_glob_path(pattern : String, path : String) -> Boolfn normalize_charset(raw : String) -> Stringfn normalize_extension(raw : String) -> Stringfn parse_auth_credential(str : String) -> (String, String)?fn parse_basic_auth_header(header : String) -> (String, String)?fn parse_http_date(date_str : String) -> Int64?fn resolve_content_type(path : String, registry : MimeRegistry, default_type : String, sample_bytes? : Bytes) -> Stringfn should_return_304(if_none_match : String?, if_modified_since : String?, server_mtime_sec : Int64, server_etag : EntityTag, weak_compare : Bool) -> Boolfn sniff_html_charset(bytes : Bytes) -> String?fn validate_relative_path(path : String) -> Boolfn validate_uri_encoding(target : String) -> Boolfn verify_basic_auth(header : String?, expected : (String, String)) -> BoolInstall
Download zipDependencies