softprops / hyperlocal

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

Add server usage extension trait revised for hyper 1.x #72

Closed iamjpotts closed 1 month ago

iamjpotts commented 1 month ago

hyperlocal had an extension method of hyper's Server - but Server no longer exists in hyper 1.0, so that extension was removed in a pre-release version of hyperlocal 0.9.

This adds a replacement extension, extending UnixListener with a serve method.

This PR is one of two potential resolutions to https://github.com/softprops/hyperlocal/issues/70, the other being https://github.com/softprops/hyperlocal/pull/73.

iamjpotts commented 1 month ago

@softprops i noticed you approved both PRs and merged the readme update PR.

Keeping this PR as-is would revert the readme changes from the first PR, not sure if that is what you were expecting or not. In any case, the readme changes that accompany this PR make it consistent with itself.