iOS re-routing requests w/ GCDWebServer (not redirecting)
问题 I want to create a server on iOS with GCDWebServer , which will accept request to localhost , and then, draw the data from another url (a video file) and stream the data to the response. I intend to use plain NSURLConnection , and in the didReceiveData of the NSURLConnection callback, I want to pass this data to the GCDWebServerResponse . I am having a hard time to figure out how can I keep the connection from a request open, so that I can initiate another request w/ NSURLConnection , and