Reuse HttpState in ResourceGroup

This commit is contained in:
Anthony Ramine 2017-04-03 12:00:35 +02:00
parent 016fee016b
commit 8683f4d43e
2 changed files with 16 additions and 20 deletions

View file

@ -65,6 +65,7 @@ fn read_block<R: Read>(reader: &mut R) -> Result<Data, ()> {
}
}
#[derive(Clone)]
pub struct HttpState {
pub hsts_list: Arc<RwLock<HstsList>>,
pub cookie_jar: Arc<RwLock<CookieStorage>>,