Skip to content

Commit

Permalink
Renamed hyper module to http
Browse files Browse the repository at this point in the history
Now that this module handles the HTTP, Hyper, and Axum crates and does
so with specific reference and implementations, instead of just being
focused on the Hyper crate, it makes more sense to name it http as this
covers all three crates and the intended purpose.
  • Loading branch information
danwilliams committed Oct 2, 2023
1 parent d609b0d commit b9bc108
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions crates/rubedo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ able to grant immortality, and is the main goal of alchemy. The philosopher's
stone is also known as the "red stone" or the "red powder". The reasons for the
choice of name are firstly that the "redness" is tangentially related to Rust
through colour, and secondly that this crate will aspirationally help to turn
your Rust code into gold... or at least make it easier to write.
your Rust code into gold... well, maybe... or at least make it easier to write.

## Features

Expand Down Expand Up @@ -114,14 +114,15 @@ struct is extended with the following methods:
- [`end_of_year_opt()`](https://docs.rs/rubedo/latest/rubedo/chrono/trait.NaiveDateExt.html#tymethod.end_of_year_opt) -
Returns the date of the last day of the given year.

### hyper
### http

The `hyper` module provides extensions to the [Hyper](https://crates.io/crates/hyper)
crate.
The `http` module provides extensions to the [HTTP](https://crates.io/crates/http),
[Hyper](https://crates.io/crates/hyper), and [Axum](https://crates.io/crates/axum)
crates.

#### Response

The [`Response`](https://docs.rs/hyper/latest/hyper/struct.Response.html)
The [`Response`](https://docs.rs/http/latest/http/response/struct.Response.html)
struct is extended with the following methods:

- [`unpack()`](https://docs.rs/rubedo/latest/rubedo/chrono/trait.ResponseExt.html#tymethod.unpack) -
Expand Down
2 changes: 1 addition & 1 deletion crates/rubedo/src/hyper.rs → crates/rubedo/src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// Modules

#[cfg(test)]
#[path = "tests/hyper.rs"]
#[path = "tests/http.rs"]
mod tests;


Expand Down
2 changes: 1 addition & 1 deletion crates/rubedo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// Modules

pub mod chrono;
pub mod hyper;
pub mod http;
pub mod std;
pub mod sugar;

Expand Down
File renamed without changes.

0 comments on commit b9bc108

Please sign in to comment.