URLRequestConvertible - SwiftDocOrg/Alamofire GitHub Wiki
URLRequestConvertible
Types adopting the URLRequestConvertible protocol can be used to safely construct URLRequests.
public protocol URLRequestConvertible
Requirements
asURLRequest()
Returns a URLRequest or throws if an Error was encountered.
func asURLRequest() throws -> URLRequest
Throws
Any error thrown while constructing the URLRequest.
Returns
A URLRequest.