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

Already on GitHub? Sign in to your account

Error in README - no constructor for AsyncHttpServer that takes a port as argument #7

Closed
curioustechizen opened this Issue Apr 11, 2013 · 1 comment

Comments

Projects
None yet
2 participants

The HTTP Server example in README says this:
AsyncHttpServer mServer = new AsyncHttpServer(5000);

However, there is no constructor for AsyncHttpServer that takes a port as constructor. The example should read:

AsyncHttpServer mServer = new AsyncHttpServer();
mServer.get("/", new HttpServerRequestCallback() {
    @Override
    public void onRequest(AsyncHttpServerRequest request, AsyncHttpServerResponse response) {
        response.send("Hello!!!");
    }
});
mServer.listen(5000);
Owner

koush commented Apr 11, 2013

c0778d2 fixed

@koush koush closed this Apr 11, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment