URLRequest
public extension URLRequest
extension URLRequest: URLRequestProvider
-
HTTPMethodof the request.Declaration
Swift
var method: HTTPMethod? { get set } -
Returns
self.Declaration
Swift
public func urlRequest() throws -> URLRequest -
Creates an instance with the specified
url,method, andheaders.Throws
Any error thrown while converting theURLConvertibleto aURL.Declaration
Swift
init(url: URLProvider, method: HTTPMethod, headers: Headers? = nil) throwsParameters
urlThe
URLConvertiblevalue.methodThe
HTTPMethod.headersThe
HTTPHeaders,nilby default.