1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-25 08:22:43 +01:00
actix-extras/src/h1/mod.rs

23 lines
503 B
Rust
Raw Normal View History

2018-10-05 05:02:10 +02:00
//! HTTP/1 implementation
use actix_net::codec::Framed;
2018-10-05 05:02:10 +02:00
mod codec;
mod decoder;
mod dispatcher;
2018-10-05 19:03:10 +02:00
mod encoder;
2018-10-05 05:02:10 +02:00
mod service;
pub use self::codec::{Codec, InMessage, InMessageType, OutMessage};
2018-10-08 16:55:01 +02:00
pub use self::decoder::{PayloadDecoder, RequestDecoder};
2018-10-05 05:02:10 +02:00
pub use self::dispatcher::Dispatcher;
2018-10-08 16:55:01 +02:00
pub use self::service::{H1Service, H1ServiceHandler};
use request::Request;
/// H1 service response type
pub enum H1ServiceResult<T> {
Disconnected,
Shutdown(T),
Unhandled(Request, Framed<T, Codec>),
}