property(forKey:in:)
Fetches the property associated with the specified key in the specified request.
Declaration
class func property(forKey key: String, in request: URLRequest) -> Any?Parameters
- key:
The key of the desired property.
- request:
The request whose properties are to be queried.
Return Value
The property associated with key, or nil if no property has been stored for key.
Discussion
Use this method to access protocol-specific information associated with URLRequest objects.