• 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: NSURLSessionStreamTask
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSURLSessionStreamTask
      • From: Daryle Walker <email@hidden>
References: 
 >NSURLSessionStreamTask (From: Daryle Walker <email@hidden>)
 >Re: NSURLSessionStreamTask (From: "Quinn \"The Eskimo!\"" <email@hidden>)
 >Re: NSURLSessionStreamTask (From: Daryle Walker <email@hidden>)

  • Prev by Date: Re: NSURLSessionStreamTask
  • Next by Date: Re: NSURLSessionStreamTask
  • Previous by thread: Re: NSURLSessionStreamTask
  • Next by thread: Re: NSURLSessionStreamTask
  • Index(es):
    • Date
    • Thread