Pulled out example code from main nanohttpd file for clarity.