Struct iron::headers::AcceptRanges [-] [+] [src]

pub struct AcceptRanges(pub Vec<RangeUnit>);

Accept-Ranges header, defined in RFC7233

The Accept-Ranges header field allows a server to indicate that it supports range requests for the target resource.

ABNF

Accept-Ranges     = acceptable-ranges
acceptable-ranges = 1#range-unit / "none"

# Example values
* `bytes`
* `none`
* `unknown-unit`

Trait Implementations

impl Deref for AcceptRanges

type Target = Vec<RangeUnit>

fn deref(&'a self) -> &'a Vec<RangeUnit>

impl DerefMut for AcceptRanges

fn deref_mut(&'a mut self) -> &'a mut Vec<RangeUnit>

impl Header for AcceptRanges

fn header_name() -> &'static str

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

impl HeaderFormat for AcceptRanges

fn fmt_header(&self, f: &mut Formatter) -> Result<(), Error>

impl Display for AcceptRanges

fn fmt(&self, f: &mut Formatter) -> Result<(), Error>

Derived Implementations

impl PartialEq<AcceptRanges> for AcceptRanges

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

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

impl Debug for AcceptRanges

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

impl Clone for AcceptRanges

fn clone(&self) -> AcceptRanges

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