softprops / hyperlocal

🔌 ✨rustlang hyper bindings for local unix domain sockets
MIT License
229 stars 46 forks source link

Allow driving server using user-provided runtime. #19

Closed arsing closed 5 years ago

arsing commented 5 years ago

This makes the API more similar to hyper 0.12. Specifically, it allows the user to use server::Http::serve_* for more fine-grained handling of incoming connections. The existing server::Server::run still exists to allow an easy way of synchronously starting up a server on a new tokio runtime.

Other changes:


Note that this has semver-major breaking changes. Http::bind is now Server::bind (similar to hyper::Server), Server::local_addr always succeeds, and some of the generic bounds are different.

softprops commented 5 years ago

@arsing these changes where published in 0.6.0