awesome-ios-developer/Helper/Network Layer/Services/HTTPTask.swift

26 lines
557 B
Swift
Raw Normal View History

2021-05-03 13:34:53 +07:00
//
// HTTPTask.swift
// MapDemoApp
//
// Created by JungpyoHong on 4/25/21.
//
import Foundation
public typealias HTTPHeaders = [String:String]
public enum HTTPTask {
case request
case requestParameters(bodyParameters: Parameters?,
bodyEncoding: ParameterEncoding,
urlParameters: Parameters?)
case requestParametersAndHeaders(bodyParameters: Parameters?,
bodyEncoding: ParameterEncoding,
urlParameters: Parameters?,
additionHeaders: HTTPHeaders?)
// case download, upload...etc
}