Run cargo fmt
The CI requirements for formatting have changed over the past 3 years Signed-off-by: Patrick Roy <roypat@amazon.co.uk>
This commit is contained in:
committed by
Alexandra Iordache
parent
f3e710ce26
commit
d2caafab0e
@@ -131,8 +131,12 @@ impl Headers {
|
||||
/// use micro_http::Headers;
|
||||
///
|
||||
/// let mut request_header = Headers::default();
|
||||
/// assert!(request_header.parse_header_line(b"Content-Length: 24").is_ok());
|
||||
/// assert!(request_header.parse_header_line(b"Content-Length: 24: 2").is_err());
|
||||
/// assert!(request_header
|
||||
/// .parse_header_line(b"Content-Length: 24")
|
||||
/// .is_ok());
|
||||
/// assert!(request_header
|
||||
/// .parse_header_line(b"Content-Length: 24: 2")
|
||||
/// .is_err());
|
||||
/// ```
|
||||
pub fn parse_header_line(&mut self, header_line: &[u8]) -> Result<(), RequestError> {
|
||||
// Headers must be ASCII, so also UTF-8 valid.
|
||||
|
||||
Reference in New Issue
Block a user