Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: hyperium/hyper
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.6.0
Choose a base ref
...
head repository: hyperium/hyper
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 13 commits
  • 29 files changed
  • 10 contributors

Commits on Mar 16, 2025

  1. docs(ffi): remove redundant backticks (#3855)

    Signed-off-by: jimmycathy <[email protected]>
    jimmycathy authored Mar 16, 2025
    Configuration menu
    Copy the full SHA
    68bae2b View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2025

  1. test(body): add proper cfgs to body unit tests (#3864)

    Running `cargo test` fails to compile because tests rely on types which
    are behind a #[cfg(…)] which is disabled by default.
    
    Add a #[cfg(…)] directive to tests which rely on types which are also
    behind a #[cfg(…)] directive, so that these tests run only if the types
    on which they depend exist.
    WhyNotHugo authored Mar 24, 2025
    Configuration menu
    Copy the full SHA
    c449528 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2025

  1. docs(service): add HttpService documentation (#3869)

    this commit introduces some additional documentation to the
    `HttpService` trait, and the `Service` trait.
    
    notably, this commit introduces some intradoc links, so that rustdoc
    will render links to types like `http::Request` and `http::Response`, or
    to the `Body` trait.
    
    additionally, mention of `hyper-util` is added to the `Service` trait,
    to direct users to the glue implementations that they will likely need
    to interact with e.g. `tower`.
    
    Signed-off-by: katelyn martin <[email protected]>
    cratelyn authored Apr 4, 2025
    Configuration menu
    Copy the full SHA
    ede24d2 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2025

  1. Configuration menu
    Copy the full SHA
    ea5b49b View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2025

  1. 1 Configuration menu
    Copy the full SHA
    0369f5e View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2025

  1. chore(proto/h2): fix module-level documentation (#3881)

    `proto::h2::ping` has some documentation that won't be rendered
    properly, because it is written as documentation of an item rather than
    documenting the enclosing submodule.
    
    this commit updates this comment, using `//!` notation.
    
    Signed-off-by: katelyn martin <[email protected]>
    cratelyn authored Apr 28, 2025
    Configuration menu
    Copy the full SHA
    12d9b55 View commit details
    Browse the repository at this point in the history

Commits on May 6, 2025

  1. feat(client): add a TrySendError::message() method (#3884)

    this commit introduces a new inherent method to
    `hyper::client::conn::TrySendError<T>`.
    
    this error type includes a `TrySendError::take_message()` method today
    that will return an owned instance of the inbound message, should the
    underlying dispatch have been closed before serialization of the message
    ever began.
    
    this commit introduces a new method that allows callers to inspect the
    message, e.g. to update metrics, without needing to take ownership of
    the message.
    
    Signed-off-by: katelyn martin <[email protected]>
    cratelyn authored May 6, 2025
    Configuration menu
    Copy the full SHA
    03fd6af View commit details
    Browse the repository at this point in the history
  2. feat(client): add a TrySendError::error() method (#3885)

    this commit introduces a new inherent method to
    `hyper::client::conn::TrySendError<T>`.
    
    this error type includes a `TrySendError::into_error()` method today
    that will consume the `TrySendError<T>`, returning the inner error. this
    commit introduces a new method that allows callers to inspect the error,
    e.g. to update metrics, without needing to consume the error.
    
    this is akin to #3884, which added the `TrySendError::message()` method
    that returns a reference to the `T`-typed message when applicable.
    
    Signed-off-by: katelyn martin <[email protected]>
    cratelyn authored May 6, 2025
    Configuration menu
    Copy the full SHA
    efa0b26 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    42aff87 View commit details
    Browse the repository at this point in the history

Commits on May 19, 2025

  1. refactor(lib): drop futures-util except in ffi (#3890)

    Make hyper usable for h1/h2 and client/server without this heavyweight
    dependency. It's about 17k lines of code and takes up to 1.7 seconds to
    compile on my machine, but hyper is only using a tiny fraction of it.
    Larger applications probably still pull in futures-util by other means,
    but it's no longer as unavoidable as in the early days of the ecosystem.
    
    To remove futures-util without raising MSRV, I took these steps:
    
    * When futures-util just re-exports something from its dependencies,
      use it directly from the source.
    * Inline trivial helpers like `poll_unpin` that "only" communicate
      intent a little better but don't save any significant amount of code.
    * Refactor the h2 client code to avoid `StreamFuture` for the "Client
      has been dropped" detection -- just poll the mpsc channel directly.
    * Implement a couple of small helpers from scratch when they're
      straightforward and fit on one screen each. The majority of this is
      polyfills for standard library APIs that would require a higher MSRV.
    * Use `AtomicWaker` from the `atomic-waker` crate, a separately
      published copy of the futures-util type of the same name. While the
      two crates are owned by different organizations (smol-rs vs.
      rust-lang), it's mostly the same people maintaining both copies.
    
    The uses of future-util in hyper's tests/benches/examples and in the
    `ffi` module seem much harder to remove entirely, so I did not touch
    those modules at all.
    hanna-kruppe authored May 19, 2025
    Configuration menu
    Copy the full SHA
    e11b2ad View commit details
    Browse the repository at this point in the history
  2. 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()`.
    Patryk27 authored May 19, 2025
    Configuration menu
    Copy the full SHA
    436cadd View commit details
    Browse the repository at this point in the history

Commits on May 26, 2025

  1. Configuration menu
    Copy the full SHA
    c88df78 View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2025

  1. feat(error): add Error::is_shutdown() (#3863)

    Benchmarking tools often cause connections to be ungracefully shutdown.
    This makes it possible to filter these errors out.
    
    Closes #2745
    joshka authored Jun 27, 2025
    1 Configuration menu
    Copy the full SHA
    b8affd8 View commit details
    Browse the repository at this point in the history
Loading