Created
May 11, 2016 13:03
-
-
Save leonmaia/8ad833f29d8fa945dc34e628c290cd2e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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