Created
May 28, 2018 17:25
-
-
Save fmo91/589b90f3315466d82eddb34487ac06df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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