Skip to content

Investigate writer problems #1

@skade

Description

@skade

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions