     }
     
     private func processResponse(response: Response<NSData, NSError>, deferred: Deferred<Result<DroskyResponse>>) {
-        
-        //TODO: use the Timeline data in Response to calculate an average of the responses from the server
         
         queue.addOperationWithBlock {
             switch response.result {

Inspired by Moya (https://github.com/AshFurrow/Moya)

*/

// Mark: HTTP method and parameter encoding


        let request = NSMutableURLRequest(URL: URL)
        request.HTTPMethod = endpoint.method.rawValue
        request.allHTTPHeaderFields = endpoint.httpHeaderFields
        if let authToken = authToken {
            request.setValue("Bearer \(authToken)", forHTTPHeaderField: "Authorization")
        }

        let requestTuple = endpoint.parameterEncoding.alamofireParameterEncoding().encode(request, parameters: endpoint.parameters)
        
        if let error = requestTuple.1 {
