Created
February 14, 2016 22:25
-
-
Save stefan-reich/be55a6eae1b3f81bf32b to your computer and use it in GitHub Desktop.
Quick webserver in JavaX
This file contains 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
// tinybrain.de/1001649 | |
!752 | |
p { | |
serveHttp(7777); | |
} | |
static NanoHTTPD.Response serve(S uri, NanoHTTPD.Method method, | |
Map<S,S> header, Map<S,S> parms, Map<S,S> files) { | |
print("Serving HTML."); | |
ret serveHTML("Hello world (as usual...)"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment