     public class func post(url: String, params: JSONObject? = nil, payload: AnyObject? = nil,
         headers: JSONObject? = nil) -> JSONResult {
             return JSONRequest().post(url, params: params, payload: payload, headers: headers)
+    }
+
+    public class func put(url: String, params: JSONObject? = nil, payload: AnyObject? = nil,
+        headers: JSONObject? = nil) -> JSONResult {
+            return JSONRequest().put(url, params: params, payload: payload, headers: headers)
     }
 
 }

        switch self {
        case .Success(_, let response):
            return response
        case .Failure(_, let response):
            return response
        }
    }

                    returningResponse: &response)
                return parseResponse(data, response: response)
            } catch {
                return JSONResult.Failure(error: JSONError.RequestFailed, response: nil, body: nil)
            }
    }

    func updateRequestUrl(method: String, url: String, queryParams: JSONObject? = nil) {
        request?.URL = createURL(url, queryParams: queryParams)
        request?.HTTPMethod = method
    }

    func updateRequestHeaders(headers: JSONObject?) {
        request?.setValue("application/json", forHTTPHeaderField: "Content-Type")
        request?.setValue("application/json", forHTTPHeaderField: "Accept")
        if headers != nil {
            for (headerName, headerValue) in headers! {
                request?.setValue(String(headerValue), forHTTPHeaderField: headerName)
            }
        }
    }
