This commit is contained in:
nora 2023-03-07 15:05:55 +01:00
parent 4d90501fee
commit 62c84026f6
2 changed files with 1 additions and 16 deletions

View file

@ -76,18 +76,6 @@ pub use super::tcp::{AddrIncoming, AddrStream};
#[cfg_attr(docsrs, doc(cfg(any(feature = "http1", feature = "http2"))))] #[cfg_attr(docsrs, doc(cfg(any(feature = "http1", feature = "http2"))))]
pub(crate) struct Http<E = Exec> { pub(crate) struct Http<E = Exec> {
pub(crate) exec: E, pub(crate) exec: E,
h1_half_close: bool,
h1_keep_alive: bool,
h1_title_case_headers: bool,
h1_preserve_header_case: bool,
#[cfg(all(feature = "http1", feature = "runtime"))]
h1_header_read_timeout: Option<Duration>,
h1_writev: Option<bool>,
#[cfg(feature = "http2")]
h2_builder: proto::h2::server::Config,
mode: ConnectionMode,
max_buf_size: Option<usize>,
pipeline_flush: bool,
} }
/// The internal mode of HTTP protocol which indicates the behavior when a parse error occurs. /// The internal mode of HTTP protocol which indicates the behavior when a parse error occurs.
#[cfg(any(feature = "http1", feature = "http2"))] #[cfg(any(feature = "http1", feature = "http2"))]

View file

@ -48,10 +48,7 @@ where
S::ResBody: 'static, S::ResBody: 'static,
<S::ResBody as HttpBody>::Error: Into<Box<dyn StdError + Send + Sync>>, <S::ResBody as HttpBody>::Error: Into<Box<dyn StdError + Send + Sync>>,
{ {
type Future = Watching< type Future = ();
UpgradeableConnection<I, S, E>,
fn(Pin<&mut UpgradeableConnection<I, S, E>>),
>;
fn watch(&self) -> Self::Future { fn watch(&self) -> Self::Future {
loop {} loop {}
} }