Struct headers_ext::AcceptRanges[][src]

pub struct AcceptRanges(_);

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`

Examples


Methods

impl AcceptRanges
[src]

A constructor to easily create the common Accept-Ranges: bytes header.

Trait Implementations

impl Clone for AcceptRanges
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for AcceptRanges
[src]

Formats the value using the given formatter. Read more

impl PartialEq for AcceptRanges
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations