What NSURL / NSURLRequest / NSURLConnection schemes understand?

Apple says NSURL is developed using RFC 1738 (and some others).

Now RFC 1738 only indicates that the web URL has a scheme and a specific part of the scheme.

I want to know all the schemes that NSURL understands. And since I use it with NSURLRequest and NSURLConnection (the so-called "URL loading system"), I need to know all the schemes that they understand.

Why? Because I just want to know. Apple, without going into details about this in the documentation, just say that it complies with RFC 1738. It says a lot, but also nothing.

+3
source share
2 answers

NSURL "" , , . URL.

, NSURLRequest , , .

NSURLConnection - , . NSURLConnection URL-, , NSURLProtocol. , http:, https:, ftp: file:. +canHandleRequest:.

data: URL-. :///13649313 Apple, .

+8

URL http, https, file, ftp, about data.

, NSURL NSURLProtocol.

+4

Source: https://habr.com/ru/post/1729404/


All Articles