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

feat(server): re-design Server as higher-level API #1488

Merged
merged 1 commit into from
Apr 16, 2018
Merged

Commits on Apr 16, 2018

  1. feat(server): re-design Server as higher-level API

    The `hyper::Server` is now a proper higher-level API for running HTTP
    servers. There is a related `hyper::server::Builder` type, to construct
    a `Server`. All other types (`Http`, `Serve`, etc) were moved into the
    "lower-level" `hyper::server::conn` module.
    
    The `Server` is a `Future` representing a listening HTTP server. Options
    needed to build one are set on the `Builder`.
    
    As `Server` is just a `Future`, it no longer owns a thread-blocking
    executor, and can thus be run next to other servers, clients, or
    what-have-you.
    
    Closes #1322
    Closes #1263
    
    BREAKING CHANGE: The `Server` is no longer created from `Http::bind`,
      nor is it `run`. It is a `Future` that must be polled by an
      `Executor`.
    
      The `hyper::server::Http` type has move to
      `hyper::server::conn::Http`.
    seanmonstar committed Apr 16, 2018
    Configuration menu
    Copy the full SHA
    c497450 View commit details
    Browse the repository at this point in the history