This commit is contained in:
mdecimus
2025-03-09 17:17:52 +01:00
parent 1f950b40de
commit 79ad95fae1
4 changed files with 300 additions and 49 deletions

View File

@@ -51,6 +51,11 @@ impl HttpResponse {
self
}
pub fn with_lock_token(mut self, token_uri: &str) -> Self {
self.builder = self.builder.header("Lock-Token", format!("<{token_uri}>"));
self
}
pub fn with_header<K, V>(mut self, name: K, value: V) -> Self
where
K: TryInto<HeaderName>,