             }
 
             // execute callback
-            let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
+            let dataResponse = RestResponse(response: response, data: data, result: result)
             completionHandler(dataResponse)
         }
     }

            // parse data as a string
            guard let string = String(data: data, encoding: .utf8) else {
                let result = RestResult<String>.failure(RestError.serializationError)
                let dataResponse = RestResponse(request: self.request, response: response, data: nil, result: result)
                completionHandler(dataResponse)
                return
            }

            // execute callback
            let result = RestResult.success(string)
            let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
            completionHandler(dataResponse)
        }
    }

            // ensure data is not nil
            guard let data = data else {
                let result = RestResult<String>.failure(RestError.noData)
                let dataResponse = RestResponse(response: response, data: nil, result: result)
                completionHandler(dataResponse)
                return
            }
