You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0599]: no function or associated item named `http` found for type `hyper::Server<_, _>` in the
current scope
--> src/server/mod.rs:7:5
|
7 | Server::http("0.0.0.0:80")
| ^^^^^^^^^^^^ function or associated item not found in `hyper::Server<_, _>`
error[E0308]: mismatched types
--> src/server/mod.rs:10:32
|
10 | match HyperRequest(req).into_ws() {
| ^^^ expected struct `hyper::server::request::Request`, found struc
t `hyper::Request`
|
= note: expected type `hyper::server::request::Request<'_, '_>`
found type `hyper::Request`
error[E0599]: no method named `send` found for type `hyper::Response` in the current scope
--> src/server/mod.rs:23:25
|
23 | res.send(b"Try connecting over ws instead.").unwrap();
| ^^^^
error: aborting due to 3 previous errors
The text was updated successfully, but these errors were encountered:
Would you please close this issue as resolved? Sometime in the future this project will support a modern versions of hyper, but for now you have to stick to ^0.10.6
Hello!
I attempted to compile the HyperResponse example (http://cyderize.github.io/rust-websocket/doc/websocket/server/upgrade/sync/struct.HyperRequest.html) with current Hyper, but it doesn't type check.
The text was updated successfully, but these errors were encountered: