Instantly share code, notes, and snippets.

What would you like to do?
public struct RequestData {
public let path: String
public let method: HTTPMethod
public let params: [String: Any?]?
public let headers: [String: String]?
public init (
path: String,
method: HTTPMethod = .get,
params: [String: Any?]? = nil,
headers: [String: String]? = nil
) {
self.path = path
self.method = method
self.params = params
self.headers = headers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment