Re: NSURLSessionStreamTask
Re: NSURLSessionStreamTask
- Subject: Re: NSURLSessionStreamTask
- From: Jens Alfke <email@hidden>
- Date: Fri, 15 Apr 2016 17:29:16 -0700
On Apr 15, 2016, at 3:25 PM, Daryle Walker < email@hidden> wrote:
My mind was on non-HTTP(S) transactions. It seems that NSURLSessionStreamTask can be used both from transitioning HTTP data-stream transactions and from original transactions.
You’re right, the docs imply that. It just seems a bit weird since you’re still giving the session a URL, which implies an NSURLProtocol registered to handle that scheme. Like, if you write a Gopher implementation you probably can’t just start it from a “gopher:…” URL or you’ll get an error about the scheme not being recognized. But if you implement a Gopher NSURLProtocol, that class would be responsible for doing the networking itself, which creates a chicken-and-egg problem.
The alternative is that you’d just give the session an HTTP URL, even though there wouldn’t be any HTTP parsing going on. Which seems awkward.
—Jens |
_______________________________________________
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