adjusted requester to supply http::version itself

This commit is contained in:
Simon
2025-11-30 06:53:21 +00:00
parent 2de6a7d42b
commit d856ade32b
30 changed files with 154 additions and 162 deletions

View File

@@ -271,6 +271,15 @@ impl VideoFormat {
headers.insert(key, value);
}
}
pub fn http_header(&mut self, key: String, value: String) -> Self {
if self.http_headers.is_none() {
self.http_headers = Some(HashMap::new());
}
if let Some(headers) = &mut self.http_headers {
headers.insert(key, value);
}
self.to_owned()
}
pub fn format_id(mut self, format_id: String) -> Self {
self.format_id = Some(format_id);
self