Skip to content

Instantly share code, notes, and snippets.

@leonmaia
Created May 11, 2016 13:03
Show Gist options
  • Save leonmaia/8ad833f29d8fa945dc34e628c290cd2e to your computer and use it in GitHub Desktop.
Save leonmaia/8ad833f29d8fa945dc34e628c290cd2e to your computer and use it in GitHub Desktop.
public static void main(String[] args) throws Exception {
HandleErrors errorsFilter = new HandleErrors();
Service<Request, Response> service = errorsFilter.andThen(router());
ListeningServer server = Http.server().serve(addr, service);
Await.ready(server);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment