Skip to main content

HttpRange

Type Alias HttpRange 

Source
pub type HttpRange = Range<u64, _H>;
Expand description

Start and inclusive-end range for HTTP range content

Aliased Type§

pub struct HttpRange {
    pub start: u64,
    pub end: u64,
    pub _marker: PhantomData<_H>,
}

Fields§

§start: u64§end: u64§_marker: PhantomData<_H>

Implementations§

Source§

impl HttpRange

Source

pub fn range_header(&self) -> String

Source

pub fn length(&self) -> u64

Trait Implementations§

Source§

impl From<Range<u64, _F>> for HttpRange

Source§

fn from(value: FileRange) -> Self

Converts to this type from the input type.