Re: Why does NSURLSession return NSURLResponse instead of NSHTTPURLResponse
site_archiver@lists.apple.com Delivered-To: macnetworkprog@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=X5RmV86iDMXpKbAPlCAY3DY62PkdeyvUQnmG3maEp5k=; b=XyqSnMqI1LFuu0x5VRkWshY0SJsnbH1GrOfBd9WpV8bKDQSjnGZdrC6cy213zmaB63 /7wCnDknR8a1KQfD5Yl5fpNz25Dm/pFMJ3VHlxNgCW4BiU5DOv2LYygRfWfdSkEeWKc6 vPjonmTyT17pTNipGdUEiSGfiXNW+kRfOrnu0g5aykAXoVwnHG5UGFtr7t8yrDyfJeZr JpWZ40Bg9Kl5nxyKZELGvZnxspmmi5To3Ww1Okxh2gQB1w0QPsSdG+nHYNFK3PeWRHkn 3+7M/nSnt5nQRJJoil/6Qxm82hVbUTu7G1pPk2BkUtHpCPKTIqQUa5uBq/Rpyz3tyl3D hvvg== Isn’t NSHTTPURLResponse a subclass of NSURLResponse?
On Oct 18, 2017, at 7:53, Jens Alfke <jens@mooseyard.com> wrote:
On Oct 17, 2017, at 3:05 PM, Sebastien Boisvert <sebastienboisvert@yahoo.com> wrote:
I've noticed that most times, the response will come back as a NSHTTPURLResponse, other times only as a NSURLResponse (which leads to a crash when I try to get the -statusCode).
I’ve never seen a request for an HTTP[S] URL return a response that wasn’t an NSHTTPURLResponse, so that’s definitely unexpected!
Are you certain that the URLs in your requests always have the scheme “http” or “https”?
—Jens _______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (Macnetworkprog@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/macnetworkprog/dangerwillrobinsondan...
This email sent to dangerwillrobinsondanger@gmail.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (Macnetworkprog@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/macnetworkprog/site_archiver%40lists... This email sent to site_archiver@lists.apple.com
participants (1)
-
dangerwillrobinsondanger@gmail.com