Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate writer problems #1

Open
skade opened this issue Sep 29, 2013 · 1 comment
Open

Investigate writer problems #1

skade opened this issue Sep 29, 2013 · 1 comment

Comments

@skade
Copy link
Owner

skade commented Sep 29, 2013

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

@skade
Copy link
Owner Author

skade commented Sep 29, 2013

Strangely, this is fixed by 5a0151c: moving the server into another library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant