response: minor comment fixes

Signed-off-by: Luminita Voicu <lumivo@amazon.com>
This commit is contained in:
Luminita Voicu
2021-05-20 19:16:41 +03:00
parent 9b605a8b61
commit a5fdf928eb
2 changed files with 3 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ use crate::headers::Headers;
// This type represents the RequestLine raw parts: method, uri and version. // This type represents the RequestLine raw parts: method, uri and version.
type RequestLineParts<'a> = (&'a [u8], &'a [u8], &'a [u8]); type RequestLineParts<'a> = (&'a [u8], &'a [u8], &'a [u8]);
/// Finds the first occurence of `sequence` in the `bytes` slice. /// Finds the first occurrence of `sequence` in the `bytes` slice.
/// ///
/// Returns the starting position of the `sequence` in `bytes` or `None` if the /// Returns the starting position of the `sequence` in `bytes` or `None` if the
/// `sequence` is not found. /// `sequence` is not found.

View File

@@ -263,12 +263,12 @@ impl Response {
self.body.clone() self.body.clone()
} }
/// Returns the HTTP Version of the response. /// Returns the Content Length of the response.
pub fn content_length(&self) -> i32 { pub fn content_length(&self) -> i32 {
self.headers.content_length self.headers.content_length
} }
/// Returns the HTTP Version of the response. /// Returns the Content Type of the response.
pub fn content_type(&self) -> MediaType { pub fn content_type(&self) -> MediaType {
self.headers.content_type self.headers.content_type
} }