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