Here’s an open source iOS library from Pierre-Oliver Latour that provides a lightweight embeddable http web server called GCDWebServer.

GCDWebServer is built with an event-driven design using grand central dispatch, and provides a number of very nice extra features such as JSON parsing and serialization, http compression with gzip and more. There are also extensions providing an interface for uploading/downloading files, and a WEBDAVServer.