NSURLResponse class encapsulates the metadata associated with the response to a a URL load request in a manner independent of protocol and URL scheme.
- iOS 2.0+
- macOS 10.2+
- tvOS 9.0+
- watchOS 2.0+
HTTPURLResponse class is a commonly used subclass of
NSURLResponse whose objects represent a response to an HTTP URL load request and store additional protocol-specific information such as the response headers. Whenever you make an HTTP request, the
NSURLResponse object you get back is actually an instance of the