awesome-ios-developer/Helper/Network Layer/Services/HTTPTask.swift
2021-05-03 01:34:53 -05:00

26 lines
557 B
Swift

//
// 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
}