Skip to content

Commit a6d4fcb

Browse files
authored
feat(server): expose Accept without httpX features (#2382)
1 parent 510b998 commit a6d4fcb

File tree

6 files changed

+458
-449
lines changed

6 files changed

+458
-449
lines changed

src/lib.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,10 @@ cfg_feature! {
102102
}
103103

104104
cfg_feature! {
105-
#![all(feature = "server", any(feature = "http1", feature = "http2"))]
105+
#![all(feature = "server")]
106106

107107
pub mod server;
108+
#[cfg(any(feature = "http1", feature = "http2"))]
109+
#[doc(no_inline)]
108110
pub use crate::server::Server;
109111
}

src/server/conn.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ use bytes::Bytes;
5757
use pin_project::pin_project;
5858
use tokio::io::{AsyncRead, AsyncWrite};
5959

60-
use super::Accept;
60+
use super::accept::Accept;
6161
use crate::body::{Body, HttpBody};
6262
use crate::common::exec::{ConnStreamExec, Exec, NewSvcExec};
6363
#[cfg(feature = "http2")]

0 commit comments

Comments
 (0)