Re: What's the best way to run an NSURLProtocol session?
Re: What's the best way to run an NSURLProtocol session?
- Subject: Re: What's the best way to run an NSURLProtocol session?
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Wed, 22 Oct 2014 09:16:29 +0100
On 20 Oct 2014, at 23:57, Daryle Walker <email@hidden> wrote:
> Here’s a copy of that post, called “Can't get first try of NSURLProtocol subclass to work.”:
I'm not sure what's going on here, but it certainly looks like WebKit is grumpy with the response you've sent it. I can't see anything obviously broken about your code.
My standard recommendation for NSURLProtocol subclasses is to test the code by loading an appropriate URL with NSURL{Session,Connection}. That allows you to test it in isolation, keeping the massive complexity of WebKit out of the picture until you're sure that things are working in general.
Share and Enjoy
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden