The metadata associated with the response to an HTTP protocol URL load request.
SDKs
- iOS 2.0+
- macOS 10.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
class HTTPURLResponse : URLResponse
Overview
The HTTPURLResponse
class is a subclass of URLResponse
that provides methods for accessing information specific to HTTP protocol responses. Whenever you make HTTP URL load requests, any response objects you get back from the URLSession
, NSURLConnection
, or NSURLDownload
class are instances of the HTTPURLResponse
class.