Struct hyper::header::common::content_length::ContentLengthExperimental [-]  [+] [src]

pub struct ContentLength(pub uint);

The Content-Length header.

Simply a wrapper around a uint.

Methods

impl ContentLength

fn len(&self) -> uint

Returns the wrapped length.

Trait Implementations

impl Header for ContentLength

fn header_name(_: Option<ContentLength>) -> &'static str

fn parse_header(raw: &[Vec<u8>]) -> Option<ContentLength>

fn fmt_header(&self, fmt: &mut Formatter) -> Result

Derived Implementations

impl Show for ContentLength

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for ContentLength

fn eq(&self, __arg_0: &ContentLength) -> bool

fn ne(&self, __arg_0: &ContentLength) -> bool

impl Clone for ContentLength

fn clone(&self) -> ContentLength

fn clone_from(&mut self, source: &Self)