I'm using GCDWebServer
's addDefaultHandlerForMethod:@"GET"
and sending an NSData response via
GCDWebServerDataResponse responseWithData:contentType:@"application/octet-stream"
The user's browser receives a file which it saves in the Download folder. So far, so good. I also want to send a GCDWebServerDataResponse responseWithHTML:
to show additional information to the user.
Given one GET request, is there a way to send two responses, one with data and one with HTML?