Re: [swift-corelibs-dev] NSURLSession & libcurl

2016-03-19 Thread Tony Parker via swift-corelibs-dev
Awesome, thanks for taking this on! - Tony > On Mar 17, 2016, at 12:33 PM, Daniel Eggert via swift-corelibs-dev > wrote: > > I’ve made good progress on this. I’ll try to get something that’s merge-able > within the next week. It won’t be 100% complete by any

[swift-corelibs-dev] NSHTTPURLResponse.localizedStringForStatusCode()

2016-03-19 Thread Ian Partridge via swift-corelibs-dev
Hi, A quick question about implementing this method. Do we want the strings returned to match those returned by the Objective-C implementation of Foundation, or follow RFC 2616? Currently they are inconsistent, e.g. Obj-C Foundation returns "no error" for status code 200, whereas the RFC says

[swift-corelibs-dev] A question about @NSCopying

2016-03-19 Thread Pushkar N Kulkarni via swift-corelibs-dev
I am trying to implement some of the methods and properties in NSOrderedSet. The read-only property "reversedOrderedSet" has the @NSCopying attribute according to the NSOrderedSet class reference. So, I tried to do this: @NSCopying public var reversedOrderedSet: NSOrderedSet {    return

Re: [swift-corelibs-dev] NSHTTPURLResponse.localizedStringForStatusCode()

2016-03-19 Thread Ian Partridge via swift-corelibs-dev
Hi Philippe, thanks for your quick reply. The HTTP status code reason phrases are designed to be human readable. They are standard phrases that are easily searched for online. The latest table is at http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml - isn't there a case