feat: utils: add generic cookie adder

This commit is contained in:
jane400 2024-09-17 19:19:36 +02:00 committed by jane400
parent b222695c16
commit ef63f18a77

View file

@ -26,6 +26,13 @@ impl CookieHeaderValueBuilder {
self self
} }
pub fn add_key_value(mut self, key: String, value: String) -> Self {
self.list
.push((key, value));
self
}
pub fn build_string(self) -> String { pub fn build_string(self) -> String {
let name_value = self let name_value = self
.list .list