feat: utils: add generic cookie adder
This commit is contained in:
parent
b222695c16
commit
ef63f18a77
1 changed files with 7 additions and 0 deletions
|
@ -26,6 +26,13 @@ impl CookieHeaderValueBuilder {
|
|||
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 {
|
||||
let name_value = self
|
||||
.list
|
||||
|
|
Loading…
Reference in a new issue