diff --git a/src/core/ir/request_wrapper.rs b/src/core/ir/request_wrapper.rs deleted file mode 100644 index bfc0adb779..0000000000 --- a/src/core/ir/request_wrapper.rs +++ /dev/null @@ -1,39 +0,0 @@ -/// Holds necessary information for request execution. -pub struct RequestWrapper { - request: reqwest::Request, - deserialized_body: Option, -} - -impl RequestWrapper { - pub fn new(request: reqwest::Request) -> Self { - Self { request, deserialized_body: None } - } - - pub fn with_deserialized_body(self, deserialized_body: Option) -> Self { - Self { deserialized_body, ..self } - } - - pub fn request(&self) -> &reqwest::Request { - &self.request - } - - pub fn request_mut(&mut self) -> &mut reqwest::Request { - &mut self.request - } - - pub fn deserialized_body(&self) -> Option<&Body> { - self.deserialized_body.as_ref() - } - - pub fn into_request(self) -> reqwest::Request { - self.request - } - - pub fn into_deserialized_body(self) -> Option { - self.deserialized_body - } - - pub fn into_parts(self) -> (reqwest::Request, Option) { - (self.request, self.deserialized_body) - } -}