Skip to content

Instantly share code, notes, and snippets.

View anandabayu's full-sized avatar
🎯
Focusing

Ananda Bayu Putra Yudhistira anandabayu

🎯
Focusing
View GitHub Profile
import Foundation
import Alamofire
class NetworkingClient {
typealias WebServiceResponse = (Data?, Error?) -> Void
typealias WebServiceResponsePost = (Data?, postError?, String?) -> Void
func get(_ url: URL, _ headers: HTTPHeaders, completion: @escaping WebServiceResponse){