Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add higher-level HTTP upgrade support to Client and Server #1563

Merged
merged 1 commit into from
Jun 14, 2018

Commits on Jun 13, 2018

  1. feat(http1): Add higher-level HTTP upgrade support to Client and Server

    - Adds `Body::on_upgrade()` that returns an `OnUpgrade` future.
    - Adds `hyper::upgrade` module containing types for dealing with
      upgrades.
    - Adds `server::conn::Connection::with_upgrades()` method to enable
      these upgrades when using lower-level API (because of a missing
      `Send` bound on the transport generic).
    - Client connections are automatically enabled.
    - Optimizes request parsing, to make up for extra work to look for
      upgrade requests.
      - Returns a smaller `DecodedLength` type instead of the fatter
        `Decoder`, which should also allow a couple fewer branches.
      - Removes the `Decode::Ignore` wrapper enum, and instead ignoring
        1xx responses is handled directly in the response parsing code.
    seanmonstar committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    165a4a6 View commit details
    Browse the repository at this point in the history