As per the CustomHTTPProtocol implementation here and the documentation here, it seems that all the calls to the NSURLProtocolClient ( atleast the below) should be run on the same clientThread as where the NSURLProtocol startLoading is called. If we donโt, we could get into issues as described in this thread
Thanks for this amazing Introduction to a cool concept. I thought many times of skipping reading it in the beginning but now I am glad I dint. Keep up the good work.
This tutorial is more than six months old so questions are no longer supported at the moment for it. We will update it as soon as possible. Thank you! :]