1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
mod config;
mod error;
mod codec;
mod proto;
mod encoder;
mod request_target;
mod headers;
mod websocket;
mod recv_mode;
pub mod buffered;
pub use self::error::Error;
pub use self::encoder::{Encoder, EncoderDone, FutureRawBody, RawBody};
pub use self::codec::{Codec, Dispatcher};
pub use self::proto::Proto;
pub use self::headers::{Head, HeaderIter};
pub use self::request_target::RequestTarget;
pub use self::websocket::{WebsocketHandshake};
use std::time::Duration;
#[derive(Debug, Clone)]
pub struct Config {
inflight_request_limit: usize,
inflight_request_prealloc: usize,
first_byte_timeout: Duration,
keep_alive_timeout: Duration,
headers_timeout: Duration,
input_body_byte_timeout: Duration,
input_body_whole_timeout: Duration,
output_body_byte_timeout: Duration,
output_body_whole_timeout: Duration,
}
#[derive(Debug, Clone)]
pub struct RecvMode {
mode: recv_mode::Mode,
timeout: Option<Duration>,
}