Patryk Wychowaniec 436cadd1ac fix(server): improve caching accuracy of Date header (#3887)
`CachedDate` gets updated every second, but the current logic doesn't
take into account milliseconds - if the application starts at
`12:00:00.600`, hyper will report `date: ...T120000` up until
`12:00:01.599`, which is overzealous.

We can sidestep this by subtracing the nanoseconds part (which includes
milliseconds) from the time passed to `CachedDate::update()`.
2025-05-19 16:39:39 -04:00
2021-01-08 10:25:53 -08:00
2025-01-28 08:51:52 -05:00
2025-01-28 08:50:25 -05:00
2023-11-15 15:08:16 -05:00

hyper

crates.io Released API docs MIT licensed CI Discord chat

A protective and efficient HTTP library for all.

  • HTTP/1 and HTTP/2
  • Asynchronous design
  • Leading in performance
  • Tested and correct
  • Extensive production use
  • Client and Server APIs

Get started by looking over the guides.

"Low-level"

hyper is a relatively low-level library, meant to be a building block for libraries and applications.

If you are looking for a convenient HTTP client, then you may wish to consider reqwest.

If you are not sure what HTTP server to choose, then you may want to consider axum or warp, the latter taking a more functional approach. Both are built on top of this library.

Contributing

To get involved, take a look at CONTRIBUTING.

If you prefer chatting, there is an active community in the Discord server.

License

hyper is provided under the MIT license. See LICENSE.

Description
An HTTP library for Rust
Readme MIT 21 MiB
Languages
Rust 96.2%
C 3.6%
Shell 0.2%