Skip to content

Commit c82e964

Browse files
committed
lib & request - improve docs and refactor code
1 parent 8b5a8da commit c82e964

File tree

2 files changed

+74
-65
lines changed

2 files changed

+74
-65
lines changed

src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,20 @@
44
//! which relies on TLS framework provided by OS on Windows and macOS, and OpenSSL
55
//! on all other platforms. But it also supports [rus-tls](https://crates.io/crates/rustls).
66
//!
7-
//! ## Example
7+
//! ## Examples
88
//! Basic GET request
99
//! ```
1010
//! use http_req::request;
1111
//!
1212
//! fn main() {
13-
//! //Container for body of a response
13+
//! // Container for body of a response
1414
//! let mut body = Vec::new();
1515
//! let res = request::get("https://doc.rust-lang.org/", &mut body).unwrap();
1616
//!
1717
//! println!("Status: {} {}", res.status_code(), res.reason());
1818
//! }
1919
//! ```
20+
2021
pub mod chunked;
2122
pub mod error;
2223
pub mod request;

0 commit comments

Comments
 (0)