Type Method

removeProperty(forKey:in:)

Removes the property associated with the specified key in the specified request.

Declaration

class func removeProperty(forKey key: String, in request: NSMutableURLRequest)

Parameters

key

The key whose value should be removed.

request

The request from which to remove the property value.

Discussion

This method is used to provide an interface for protocol implementors to customize protocol-specific information associated with URLRequest objects.

See Also

Getting and Setting Request Properties

class func property(forKey: String, in: URLRequest) -> Any?

Fetches the property associated with the specified key in the specified request.

class func setProperty(Any, forKey: String, in: NSMutableURLRequest)

Sets the property associated with the specified key in the specified request.