aboutsummaryrefslogtreecommitdiffstats
path: root/src/args.rs
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2025-02-06 02:03:47 +0000
committerGitHub <noreply@github.com>2025-02-06 02:03:47 +0000
commit41ccc9f0c9e3b20434389d7ddb4a922b21c8f765 (patch)
tree0907869057fea553c26601aaca6d2443fcc9de97 /src/args.rs
parentMerge pull request #1470 from svenstaro/dependabot/cargo/all-dependencies-184... (diff)
parentadd read-only webdav support (diff)
downloadminiserve-41ccc9f0c9e3b20434389d7ddb4a922b21c8f765.tar.gz
miniserve-41ccc9f0c9e3b20434389d7ddb4a922b21c8f765.zip
Merge pull request #1415 from ahti/webdav
add read-only webdav support
Diffstat (limited to 'src/args.rs')
-rw-r--r--src/args.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/args.rs b/src/args.rs
index 9ac6772..922e78b 100644
--- a/src/args.rs
+++ b/src/args.rs
@@ -309,6 +309,12 @@ pub struct CliArgs {
/// and return an error instead.
#[arg(short = 'I', long, env = "MINISERVE_DISABLE_INDEXING")]
pub disable_indexing: bool,
+
+ /// Enable read-only WebDAV support (PROPFIND requests)
+ ///
+ /// Currently incompatible with -P|--no-symlinks (see https://github.com/messense/dav-server-rs/issues/37)
+ #[arg(long, env = "MINISERVE_ENABLE_WEBDAV", conflicts_with = "no_symlinks")]
+ pub enable_webdav: bool,
}
/// Checks whether an interface is valid, i.e. it can be parsed into an IP address