Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save damijanracel/c7fcb1eac4e55d4ca8d3397536429c87 to your computer and use it in GitHub Desktop.
Save damijanracel/c7fcb1eac4e55d4ca8d3397536429c87 to your computer and use it in GitHub Desktop.
HttpRequestProtocol
protocol HttpRequestProtocol {
init(method: HttpMethod, url: String, headers: [String: String], parameters: [String: Any], encoding: Encoding)
func run(completion: @escaping ((HttpResponse) -> Void))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment