             // 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)
+                let dataResponse = RestResponse(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)
+            let dataResponse = RestResponse(response: response, data: data, result: result)
             completionHandler(dataResponse)
         }
     }

            guard error == nil else {
                // swiftlint:disable:next force_unwrapping
                let result = RestResult<Void>.failure(error!)
                let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
                completionHandler(dataResponse)
                return
            }

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

            }

            // execute callback
            let dataResponse = RestResponse(response: response, data: data, result: result)
            completionHandler(dataResponse)
        }
    }
