aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2021-09-23 18:36:26 +0000
committerGitHub <noreply@github.com>2021-09-23 18:36:26 +0000
commitd5995e82cecd5138fa092694292444a02af1bba9 (patch)
tree833a6f473138418e2e275675de16c4463cd029a2 /src/config.rs
parentRename Archlinux -> Arch Linux (diff)
parentcargo fmt (diff)
downloadminiserve-d5995e82cecd5138fa092694292444a02af1bba9.tar.gz
miniserve-d5995e82cecd5138fa092694292444a02af1bba9.zip
Merge pull request #508 from Jikstra/feat_raw_mode
Implement a raw rendering mode for recursive folder download
Diffstat (limited to '')
-rw-r--r--src/config.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index 86fe314..ce4e5d7 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -101,6 +101,9 @@ pub struct MiniserveConfig {
/// If enabled, version footer is hidden
pub hide_version_footer: bool,
+ /// If enabled, display a wget command to recursively download the current directory
+ pub show_wget_footer: bool,
+
/// If set, use provided rustls config for TLS
#[cfg(feature = "tls")]
pub tls_rustls_config: Option<rustls::ServerConfig>,
@@ -192,6 +195,7 @@ impl MiniserveConfig {
header: args.header,
show_symlink_info: args.show_symlink_info,
hide_version_footer: args.hide_version_footer,
+ show_wget_footer: args.show_wget_footer,
tls_rustls_config: tls_rustls_server_config,
})
}