NSMutable is a subclass of
NSURLRequest provided to aid developers who may find it more convenient to mutate a single request object for a series of URL load requests instead of creating an immutable
NSURLRequest object for each load.
- iOS 2.0+
- macOS 10.2+
- tvOS 9.0+
- watchOS 2.0+
NSURLRequest, is designed to be extended to support additional protocols by adding categories that provide accessor methods for your own protocol-specific properties. Those methods can get and set the actual values by calling the
NSURLDownload classes make a deep copy of each
NSMutable object passed to their initializers and task creation methods.
Reserved HTTP Headers
The URL Loading System is designed to handle various aspects of the HTTP protocol for you. As a result, you should not modify the following headers using the