Having an embedded HTTP Server in an iOS application, How can I respond to an HTTP Request with a multipart message? I'd like to asynchronously send JPEGs in a multipart response (MJPEG).
I've tried doing so using GCDWebServer, if it's not supported by it, any working alternative would be fine as long as it can also work on iOS.
GCDWebServer has no built-in API to create multipart messages. You would need to write such code and output a NSData
object, which then you wrap into a GCDWebServerDataResponse
that you return to the HTTP client.