[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURLProtocol and WebDAV

From: Philippe Roussel
Subject: Re: NSURLProtocol and WebDAV
Date: Sat, 15 Jan 2011 11:06:40 +0100

Le samedi 15 janvier 2011 à 06:45 +0000, Richard Frith-Macdonald a
écrit :


> > I have no idea how Apple implemented NSHTTPURLProtocol and no way to
> > test it.
> I have an OSX system I could run tests for you on, and I'd be very
> pleased to do that if you could add tests to the testsuite at
> My problem with writing tests for a class is that I need to be
> familiar with how the class is used (in order to write tests), and
> getting that familiarity means I need to be working on code which uses
> the class, or spend a lot of time reading the documentation ...
> running testcases for someone else who *is*  working with the classes,
> is very quick/easy by comparison.

Ok, I'll take a look at the test suite.

> > The thing is, I'm not sure to understand why NSHTTPURLProtocol
> > doesn't let me use the methods I want. What if I want to shoot myself in
> > the the foot ?
> I don't know that either ... perhaps it shouldn't be preventing you
> from doing it?  From looking at the Apple documentation it seems to me
> that another place to check for these methods might be in the
> +canInitWithRequest: method, and I don't know which Apple actually
> does.

Good point.

> > Maybe NSHTTPURLProtocol could be Apple compliant while providing a way
> > to change the accepted methods, as a GNUstep addition or through a
> > subclass ?
> That's fine ... we add such code to the gnustep-additions library
> (built into the base library on gnustep, but standalone on OSX) but
> we'd want to make sure that the addition/subclass worked with the
> Apple foundation as well as with gnustep-base, so we'd need to
> understand how you would go about changing the accepted methods on OSX
> before we start.

Ok, thanks Richard. I'll go look at the code of the testsuite and see if
I can add something useful for NSURLConnection and NSURLProtocol.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]