         if !resource.body.isEmpty {
             urlRequest.httpBody = try? JSONSerialization.data(withJSONObject: resource.body, options: [])
         }
-        URLSession.shared.dataTask(with: urlRequest) { data, response, error in
+        URLSession.shared.dataTask(with: urlRequest) { data, _, error in
 
             switch error {
             case .some(let error as NSError) where error.code == NSURLErrorNotConnectedToInternet:

public struct APIResource<T> {
    let url: URL
    let method: HTTPMethod
    let body: JSONDictonary
    let headers: StringDictonary
    let parse: (Data) -> T?
}


//  Created by Nan Wang on {TODAY}.
//  Copyright © 2017 NanTech. All rights reserved.
//
import Foundation

/// MARK: - HTTP Methods
public enum HTTPMethod: String {
