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

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

@curioustechizen
Copy link

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);
@koush
Copy link
Owner

koush commented Apr 11, 2013

c0778d2 fixed

@koush koush closed this as completed Apr 11, 2013
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

2 participants