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

19 lines
466 B
Swift
Raw Permalink Normal View History

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