Reputation: 79
I want to embed a simple web server into a cocoa application that can support dynamic operations, like processing form submissions. It should all be contained in the app. My first thought would be to include a Rails server, but something about that seemed wrong. Are there any examples of people integrating a web server in their app?
Upvotes: 2
Views: 1037
Reputation: 4008
ComicFlow is an open-source comic reader for iPad which embeds a web server so you can see exactly how it's done.
Upvotes: 0
Reputation: 79
I've prototyped somethign that uses a combination of CocoaHTTPServer and MGTemplateEngine. Here's the current GIT repo for the full app in progress: http://github.com/jgillick/Ganzbot-Controller
Look at GanzbotServer.m for how I wired those two libraries together. (FYI: You need to install RegexKit to get MGTemplateEngine to compile)
Upvotes: 1
Reputation: 31
More info: I've been looking at cocoahttpserver (http://code.google.com/p/cocoahttpserver/) but it would be nice to have an embeddable server which supported output templates like rails, php, django, etc.
Upvotes: 2