Skip to content

Instantly share code, notes, and snippets.

@meyusufdemirci
Created April 16, 2020 18:53
Show Gist options
  • Save meyusufdemirci/650b3414d5d3960fab052057c4819ea9 to your computer and use it in GitHub Desktop.
Save meyusufdemirci/650b3414d5d3960fab052057c4819ea9 to your computer and use it in GitHub Desktop.
class RequestModel: NSObject {
// MARK: - Properties
var path: String {
return ""
}
var parameters: [String: Any?] {
return [:]
}
var headers: [String: String] {
return [:]
}
var method: RequestHTTPMethod {
return body.isEmpty ? RequestHTTPMethod.get : RequestHTTPMethod.post
}
var body: [String: Any?] {
return [:]
}
// (request, response)
var isLoggingEnabled: (Bool, Bool) {
return (true, true)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment