Skip to content

Commit 029ab82

Browse files
committed
docs(client): add example links
1 parent 429ad8a commit 029ab82

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/client/mod.rs

+7-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22
//!
33
//! hyper provides HTTP over a single connection. See the [`conn`] module.
44
//!
5-
//! ## Example
5+
//! ## Examples
66
//!
7-
//! For a small example program simply fetching a URL, take a look at the
8-
//! [full client example](https://github.com/hyperium/hyper/blob/master/examples/client.rs).
7+
//! * [`client`] - A simple CLI http client that requests the url passed in parameters and outputs the response content and details to the stdout, reading content chunk-by-chunk.
8+
//!
9+
//! * [`client_json`] - A simple program that GETs some json, reads the body asynchronously, parses it with serde and outputs the result.
10+
//!
11+
//! [`client`]: https://github.com/hyperium/hyper/blob/master/examples/client.rs
12+
//! [`client_json`]: https://github.com/hyperium/hyper/blob/master/examples/client_json.rs
913
1014
#[cfg(test)]
1115
mod tests;

0 commit comments

Comments
 (0)