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
//! Http utils
//!
//! This crate contains utilities to work with the HTTP protocol
//!
//! # Example
//! ```rust,no_run
//! use http::prelude::*;
//! use std::net::TcpStream;
//!
//! let req = HttpRequest::builder()
//! .method(HttpMethod::GET)
//! .url("/")
//! .build();
//! let tcp = TcpStream::connect("127.0.0.1:80").unwrap();
//! req.send_to(tcp).unwrap();
//! ```
pub use HttpError;
pub use HttpMethod;
pub use HttpRequest;
pub use HttpResponse;
pub use StatusCode;
pub use HttpStream;
pub type Result<T> = Result;