     
     
     
-    // MARK: Methods (internal/private)
-    
-    
-    
     // MARK: NSURLSessionTaskDelegate
     
     // Handle HTTP redirection
     public func URLSession(session: NSURLSession,
-                          task: NSURLSessionTask,
-                          willPerformHTTPRedirection response: NSHTTPURLResponse,
-                          newRequest request: NSURLRequest,
-                          completionHandler: ((NSURLRequest?) -> Void))
+        task: NSURLSessionTask,
+        willPerformHTTPRedirection response: NSHTTPURLResponse,
+        newRequest request: NSURLRequest,
+        completionHandler: ((NSURLRequest?) -> Void))
     {
         var redirectRequest: NSURLRequest?
         

        }
        
        // Build request
        networkRequest.HTTPMethod = self.httpMethod.rawValue
        networkRequest.allHTTPHeaderFields = headers
        networkRequest.HTTPBody = requestBody
        

        }
        
        completionHandler(redirectRequest)
    }

    
    
    
    // MARK: Methods (internal/private)
    
    // Returns the URL with query parameters appended to it
    func appendQueryParameters(parameters: [String: String], toURL: String) -> String {
        
        var parametersInURLFormat = [String]()
        for (key, var value) in parameters {
            
            if let urlSafeValue = value.stringByAddingPercentEncodingWithAllowedCharacters(NSCharacterSet.URLQueryAllowedCharacterSet()) {
                value = urlSafeValue
            }
            else {
                value = ""
                // TODO: Log an error here
            }
            parametersInURLFormat += [key + "=" + "\(value)"]
        }
        
        return (!parametersInURLFormat.isEmpty ? "?" : "") + parametersInURLFormat.joinWithSeparator("&")
    }
    
}
