NSURLProtocol support in OS X and iOS