Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
convert from url::Url on connect / accept #15
The way I'd do this would be to introduce a new type:
pub async fn accept(host: impl Into<Host>, stream: impl Read + Write) -> Result;
This would make it lots easier to use TLS on top of existing streaming HTTP setups.