Top "Nsurlprotocol" questions

NSURLProtocol is an abstract class that provides the basic structure for performing protocol-specific loading of URL data.

iOS WebView remote html with local image files

Similar questions have been asked before, but I could never find a solution. Here is my situation - my UIWebView …

iphone html image uiwebview nsurlprotocol
NSURLConnection delegate methods are not called

I am trying to create a simple NSURLConnection to communicate with a server using a GET request. Connection works well, …

iphone nsurlconnection nsurlprotocol
How can i monitor requests on WKWebview?

How can i monitor requests on WKWebview? I'v tried using NSURLprotocol (canInitWithRequest) but it won't monitor ajax requests (XHR), only …

javascript ios monitor wkwebview nsurlprotocol
How to set statusCode in NSURLResponse

I override NSURLProtocol and need to return HTTP response with specific statusCode. NSHTTPURLResponse does not have statusCode setter, so I …

iphone objective-c nsurlprotocol
Custom NSURLProtocol with NSURLSession

I'm trying to implement this tutorial which implements a custom NSURLProtocol with NSURLConnection. https://www.raywenderlich.com/76735/using-nsurlprotocol-swift It works …

ios swift nsurlsession nsurlprotocol nsurlsessiondatatask
How to mock AJAX call with NSURLProtocol?

I have UIWebview that makes AJAX calls to external services. When offline i need to catch theses requests and return …

ios ajax uiwebview nsurlprotocol
How to play movie with a URL using a custom NSURLProtocol?

As you know,play a movie with MPMoviePlayerController object using [[MPMoviePlayerController alloc] initWithContentURL: aURL]; now ,i want to achieve a …

ios url mpmovieplayercontroller nsurlprotocol
Using a custom NSURLProtocol with UIWebView and POST requests

In my iOS app, I'm using a UIWebView and a custom protocol (with my own NSURLProtocol implementation). I've been fairly …

iphone ios uiwebview nsurlprotocol