URLRequest
extension URLRequest
extension URLRequest: URLRequestConvertible
-
Returns
allHTTPHeaderFieldsasHTTPHeaders.Declaration
Swift
public var headers: HTTPHeaders { get set } -
Returns
self.Declaration
Swift
public func asURLRequest() throws -> URLRequest -
Declaration
Swift
public init(url: any URLConvertible, method: HTTPMethod, headers: HTTPHeaders? = nil) throwsParameters
urlThe
URLConvertiblevalue.methodThe
HTTPMethod.headersThe
HTTPHeaders,nilby default. -
Returns the
httpMethodas Alamofire’sHTTPMethodtype.Declaration
Swift
public var method: HTTPMethod? { get set } -
Undocumented
Declaration
Swift
public func validate() throws
View on GitHub
Install in Dash