mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-23 05:55:13 +02:00
various server optimizations
This commit is contained in:
@@ -30,6 +30,10 @@ impl<'a> Default for Params<'a> {
|
||||
|
||||
impl<'a> Params<'a> {
|
||||
|
||||
pub(crate) fn clear(&mut self) {
|
||||
self.0.clear();
|
||||
}
|
||||
|
||||
pub(crate) fn add(&mut self, name: &'a str, value: &'a str) {
|
||||
self.0.push((name, value));
|
||||
}
|
||||
|
Reference in New Issue
Block a user