This script is just provides a basic builder for the com.sun.net.httpserver.HttpServer
and does some magic to make Groovy closures to work easily.
Pros:
- This stuff has no dependency other than JRE >= 1.6 and Groovy runtime
- Building a server is quick and painless.
Cons:
- The Sun's default handler classs is quite basic. I plan to make a bit better handler wrapper class to be able respond to requests by HTTP verbs and provide more details about the request. It will be available later. Or not :-)