feat(webdav): add WebDAV protocol gateway (#2158)

Signed-off-by: yxrxy <1532529704@qq.com>
Co-authored-by: houseme <housemecn@gmail.com>
Co-authored-by: 马登山 <Cxymds@qq.com>
Co-authored-by: heihutu <30542132+heihutu@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: 安正超 <anzhengchao@gmail.com>
This commit is contained in:
yxrxy
2026-03-14 23:06:53 +08:00
committed by GitHub
parent f66a90c1b2
commit d3cff7d033
21 changed files with 2265 additions and 8 deletions
+13
View File
@@ -46,6 +46,15 @@ pub mod ftps {
pub const PASSIVE_PORTS_PART_COUNT: usize = 2;
}
/// WebDAV constants
#[cfg(feature = "webdav")]
pub mod webdav {
/// Maximum body size (5GB)
pub const MAX_BODY_SIZE: u64 = 5 * 1024 * 1024 * 1024;
/// Default request timeout in seconds
pub const REQUEST_TIMEOUT_SECS: u64 = 300;
}
/// Default configuration values
pub mod defaults {
/// Default protocol addresses
@@ -55,4 +64,8 @@ pub mod defaults {
/// Default FTPS passive port range
#[cfg(feature = "ftps")]
pub const DEFAULT_FTPS_PASSIVE_PORTS: &str = "40000-50000";
/// Default WebDAV server address
#[cfg(feature = "webdav")]
pub const DEFAULT_WEBDAV_ADDRESS: &str = "0.0.0.0:8080";
}