A representation of a URL load request that you use when you need reference semantics or other Foundation-specific behavior.
- iOS 2.0+
- macOS 10.2+
- tvOS 9.0+
- watchOS 2.0+
NSURLRequest encapsulates two basic data elements of a load request: the URL to load, and the policy to use when consulting the URL content cache made available by the implementation.
NSURLRequest is designed to be extended to support additional protocols by creating extensions that provide accessor methods for your own protocol-specific properties. Those methods can get and set the actual values by calling the
The mutable subclass of