Allow setting HTTP payload limit and set default to 4MB

#124
This commit is contained in:
Lennart
2025-09-17 10:04:33 +02:00
parent bc98d1be42
commit db674d5895
3 changed files with 6 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ pub struct HttpConfig {
pub host: String,
pub port: u16,
pub session_cookie_samesite_strict: bool,
pub payload_limit_mb: usize,
}
impl Default for HttpConfig {
@@ -16,6 +17,7 @@ impl Default for HttpConfig {
host: "0.0.0.0".to_owned(),
port: 4000,
session_cookie_samesite_strict: false,
payload_limit_mb: 4,
}
}
}