1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-20 04:35:38 +02:00

add ws and http2 feature flags (#2618)

This commit is contained in:
Rob Ede
2022-01-31 21:22:23 +00:00
committed by GitHub
parent 3200de3f34
commit cd511affd5
18 changed files with 148 additions and 57 deletions

View File

@@ -24,6 +24,7 @@ impl KeepAlive {
!matches!(self, Self::Disabled)
}
#[allow(unused)] // used with `http2` feature flag
pub(crate) fn duration(&self) -> Option<Duration> {
match self {
KeepAlive::Timeout(dur) => Some(*dur),