Currently, the build fails at this point:
|
w.write(response.body.as_bytes()); |
With the following error:
rust build -L rust-http/build/ -L build src/libwidmann/lib.rs --out-dir build
src/libwidmann/server.rs:44:6: 44:40 error: type `&mut http::server::response::ResponseWriter<>` does not implement any method in scope named `write`
src/libwidmann/server.rs:44 w.write(response.body.as_bytes());
Thats weird, because this is a direct copy from the libraries examples:
https://github.com/chris-morgan/rust-http/blob/master/src/examples/server/hello_world.rs#L31
And ResponseWriter implements rt::io::Writer:
https://github.com/chris-morgan/rust-http/blob/4bdf093d99e174cf8ce8035d04c39c7f81055cbb/src/libhttp/server/response.rs#L107
Currently, the build fails at this point:
widmann/src/libwidmann/server.rs
Line 44 in 5b0dce4
With the following error:
Thats weird, because this is a direct copy from the libraries examples:
https://github.com/chris-morgan/rust-http/blob/master/src/examples/server/hello_world.rs#L31
And ResponseWriter implements
rt::io::Writer:https://github.com/chris-morgan/rust-http/blob/4bdf093d99e174cf8ce8035d04c39c7f81055cbb/src/libhttp/server/response.rs#L107