Skip to content

Instantly share code, notes, and snippets.

@fmo91
Created May 28, 2018 17:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fmo91/589b90f3315466d82eddb34487ac06df to your computer and use it in GitHub Desktop.
Save fmo91/589b90f3315466d82eddb34487ac06df to your computer and use it in GitHub Desktop.
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