• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: What's the best way to run an NSURLProtocol session?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >What's the best way to run an NSURLProtocol session? (From: Daryle Walker <email@hidden>)
 >Re: What's the best way to run an NSURLProtocol session? (From: "Quinn \"The Eskimo!\"" <email@hidden>)
 >Re: What's the best way to run an NSURLProtocol session? (From: Daryle Walker <email@hidden>)
 >Re: What's the best way to run an NSURLProtocol session? (From: "Quinn \"The Eskimo!\"" <email@hidden>)
 >Re: What's the best way to run an NSURLProtocol session? (From: Daryle Walker <email@hidden>)
 >Re: What's the best way to run an NSURLProtocol session? (From: Daryle Walker <email@hidden>)

  • Prev by Date: Re: What's the best way to run an NSURLProtocol session?
  • Next by Date: Source Mac address on PF_NDRV
  • Previous by thread: Re: What's the best way to run an NSURLProtocol session?
  • Next by thread: PeerToPeer Replications using bonjour not working with IPV6 addresses
  • Index(es):
    • Date
    • Thread