I am looking for a embedded HTTP server for an android device.The HTTP server needs to be a library,so that I can customize the responses(I would be doing some native operations on the device like switching on wifi etc... according to the request fired and fire back the response).For iOS we have CocoaHttpServer which is capable of doing such thing.
I saw there is NanoHTTPD,but am looking at some other options as well before finalizing anything.