pub struct HttpServer<I> { /* private fields */ }Implementations§
Source§impl<I> HttpServer<I>
impl<I> HttpServer<I>
Sourcepub fn on(label: Option<&str>, incoming: I) -> Self
pub fn on(label: Option<&str>, incoming: I) -> Self
Start http server with provided http incoming connection stream.
Sourcepub async fn accept<S, E>(
&mut self,
) -> Result<(Request<BodyReader>, WriteHalf<S>)>
pub async fn accept<S, E>( &mut self, ) -> Result<(Request<BodyReader>, WriteHalf<S>)>
Accept new incoming http connection.