-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
666c218
commit 76f0536
Showing
11 changed files
with
787 additions
and
738 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,26 @@ | ||
//!Simple HTTP client with built-in HTTPS support. | ||
//!Currently it's in heavy development and may frequently change. | ||
//! Simple HTTP client with built-in HTTPS support. | ||
//! Currently it's in heavy development and may frequently change. | ||
//! | ||
//!## Example | ||
//!Basic GET request | ||
//!``` | ||
//!use http_req::request; | ||
//! ## Example | ||
//! Basic GET request | ||
//! ``` | ||
//! use http_req::request; | ||
//! | ||
//!fn main() { | ||
//! //Container for body of a response | ||
//! let mut body = Vec::new(); | ||
//! let res = request::get("https://doc.rust-lang.org/", &mut body).unwrap(); | ||
//! fn main() { | ||
//! //Container for body of a response | ||
//! let mut body = Vec::new(); | ||
//! let res = request::get("https://doc.rust-lang.org/", &mut body).unwrap(); | ||
//! | ||
//! println!("Status: {} {}", res.status_code(), res.reason()); | ||
//!} | ||
//!``` | ||
pub mod uri; | ||
//! println!("Status: {} {}", res.status_code(), res.reason()); | ||
//! } | ||
//! ``` | ||
pub mod chunked; | ||
pub mod error; | ||
pub mod request; | ||
pub mod response; | ||
pub mod stream; | ||
pub mod chunked; | ||
pub mod tls; | ||
pub mod error; | ||
pub mod uri; | ||
|
||
pub(crate) const CR_LF: &[u8; 2] = b"\r\n"; | ||
pub(crate) const LF: u8 = 0xA; |
Oops, something went wrong.