File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ use crate::headers::Headers;
12
12
// This type represents the RequestLine raw parts: method, uri and version.
13
13
type RequestLineParts < ' a > = ( & ' a [ u8 ] , & ' a [ u8 ] , & ' a [ u8 ] ) ;
14
14
15
- /// Finds the first occurence of `sequence` in the `bytes` slice.
15
+ /// Finds the first occurrence of `sequence` in the `bytes` slice.
16
16
///
17
17
/// Returns the starting position of the `sequence` in `bytes` or `None` if the
18
18
/// `sequence` is not found.
Original file line number Diff line number Diff line change @@ -263,12 +263,12 @@ impl Response {
263
263
self . body . clone ( )
264
264
}
265
265
266
- /// Returns the HTTP Version of the response.
266
+ /// Returns the Content Length of the response.
267
267
pub fn content_length ( & self ) -> i32 {
268
268
self . headers . content_length
269
269
}
270
270
271
- /// Returns the HTTP Version of the response.
271
+ /// Returns the Content Type of the response.
272
272
pub fn content_type ( & self ) -> MediaType {
273
273
self . headers . content_type
274
274
}
You can’t perform that action at this time.
0 commit comments