Skip to content

Commit

Permalink
docs(client): add example links (#3385)
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed Nov 6, 2023
1 parent 776e8de commit 5571711
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
//!
//! hyper provides HTTP over a single connection. See the [`conn`] module.
//!
//! ## Example
//! ## Examples
//!
//! For a small example program simply fetching a URL, take a look at the
//! [full client example](https://github.com/hyperium/hyper/blob/master/examples/client.rs).
//! * [`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.
//!
//! * [`client_json`] - A simple program that GETs some json, reads the body asynchronously, parses it with serde and outputs the result.
//!
//! [`client`]: https://github.com/hyperium/hyper/blob/master/examples/client.rs
//! [`client_json`]: https://github.com/hyperium/hyper/blob/master/examples/client_json.rs

#[cfg(test)]
mod tests;
Expand Down

0 comments on commit 5571711

Please sign in to comment.