diff --git a/src/response.rs b/src/response.rs index 1f80d78ce..ac38f4faf 100644 --- a/src/response.rs +++ b/src/response.rs @@ -433,6 +433,16 @@ where Ok(()) } + + /// Retrieves the current value of the `Response` status code + pub fn status_code(&self) -> StatusCode { + self.status_code.clone() + } + + /// Retrieves the current value of the `Response` data length + pub fn data_length(&self) -> Option { + self.data_length + } } impl Response