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
56
57
58
59
60
61
62
63
64
65
66
67
mod client;
mod config;
mod encoder;
mod errors;
mod head;
mod parser;
mod proto;
mod recv_mode;
pub mod buffered;
pub use self::errors::Error;
pub use self::client::{Client, Codec};
pub use self::encoder::{Encoder, EncoderDone};
pub use self::proto::{Proto};
use std::borrow::Cow;
use std::time::Duration;
use httparse::Header;
use self::client::BodyKind;
use {Version};
#[derive(Debug, Clone)]
pub struct Config {
inflight_request_limit: usize,
inflight_request_prealloc: usize,
keep_alive_timeout: Duration,
safe_pipeline_timeout: Duration,
max_request_timeout: Duration,
}
#[derive(Debug)]
pub struct Head<'a> {
version: Version,
code: u16,
reason: &'a str,
headers: &'a [Header<'a>],
body_kind: BodyKind,
connection_header: Option<Cow<'a, str>>,
connection_close: bool,
}
#[derive(Debug, Clone)]
pub struct RecvMode {
mode: recv_mode::Mode,
}