1
0
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:
Nikolay Kim
2017-12-14 19:34:31 -08:00
parent b61c2a0cf0
commit c37565cc4a
9 changed files with 385 additions and 127 deletions

View File

@@ -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));
}