style(header): clean up extra whitespace in ContentLength file
This commit is contained in:
@@ -4,7 +4,7 @@ use header::{Header, Raw, parsing};
|
||||
|
||||
/// `Content-Length` header, defined in
|
||||
/// [RFC7230](http://tools.ietf.org/html/rfc7230#section-3.3.2)
|
||||
///
|
||||
///
|
||||
/// When a message does not have a `Transfer-Encoding` header field, a
|
||||
/// Content-Length header field can provide the anticipated size, as a
|
||||
/// decimal number of octets, for a potential payload body. For messages
|
||||
@@ -13,27 +13,25 @@ use header::{Header, Raw, parsing};
|
||||
/// body (and message) ends. For messages that do not include a payload
|
||||
/// body, the Content-Length indicates the size of the selected
|
||||
/// representation.
|
||||
///
|
||||
///
|
||||
/// # ABNF
|
||||
/// ```plain
|
||||
/// Content-Length = 1*DIGIT
|
||||
/// ```
|
||||
///
|
||||
///
|
||||
/// # Example values
|
||||
/// * `3495`
|
||||
///
|
||||
///
|
||||
/// # Example
|
||||
/// ```
|
||||
/// use hyper::header::{Headers, ContentLength};
|
||||
///
|
||||
///
|
||||
/// let mut headers = Headers::new();
|
||||
/// headers.set(ContentLength(1024u64));
|
||||
/// ```
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub struct ContentLength(pub u64);
|
||||
|
||||
//static NAME: &'static str = "Content-Length";
|
||||
|
||||
impl Header for ContentLength {
|
||||
#[inline]
|
||||
fn header_name() -> &'static str {
|
||||
|
||||
Reference in New Issue
Block a user