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 8.0+
- macOS 10.10+
- 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