 
         let isReachable = flags.contains(.Reachable)
         let needsConnection = flags.contains(.ConnectionRequired)
-        
+
         return isReachable && !needsConnection
     }
 

        }
    }

    private func traceResponse(elapsed: NSTimeInterval, responseData: NSData?, httpResponse: NSHTTPURLResponse?,
                               error: NSError?) {
        guard let log = JSONRequest.log else {
            return

        request?.HTTPBody = objectToJSON(payload)
    }

    // Query parameters should follow RFC 3986 standard
    // https://tools.ietf.org/html/rfc3986#section-2.2
    // Manual fix for plus and space encoding from http://www.openradar.me/24076063
    public func createURL(urlString: String, queryParams: JSONObject?) -> NSURL? {
