postmodern/net-http-server — pull request #5 by Twinside (2012-02-09 14:50:04+00:00)
Title: Providing an server opening success hook

Hello,

This commit add a new option for server creation, the `:success_opener` which accept a function with no argument and get's called if the server is opened without problem. It's called before the reception of the first request.

The use case for the feature is as follow :
- using net-http-server as a tiny local webserver
- The need arise to launch multiple instance of the server on different port
- For ease of use the software launch the browser on the local host with the good port

If the server cannot be opened, an exception is raised, and I can try it on an other port, if it's ok, the server would just wait for a request. The callback allow to launch the browser.