pub struct HttpRangeSource { /* private fields */ }Expand description
Native HTTP byte-range source for trusted gateways. It never accepts a
200 OK full-body fallback: large Q42 access must stay range-bounded.
Implementations§
Source§impl HttpRangeSource
impl HttpRangeSource
pub fn new(url: &str, length: u64) -> Result<Self>
Sourcepub fn discover(url: &str) -> Result<Self>
pub fn discover(url: &str) -> Result<Self>
Discover an immutable source length without downloading its body. This
is a cold construction operation used for a root URL (including IPNS).
Gateways that omit Content-Length on HEAD must still prove a one-byte
206 range response before they are accepted.
Trait Implementations§
Source§impl Q42RangeSource for HttpRangeSource
Available on non-WebAssembly only.
impl Q42RangeSource for HttpRangeSource
Available on non-WebAssembly only.
Auto Trait Implementations§
impl Freeze for HttpRangeSource
impl !RefUnwindSafe for HttpRangeSource
impl Send for HttpRangeSource
impl Sync for HttpRangeSource
impl Unpin for HttpRangeSource
impl UnsafeUnpin for HttpRangeSource
impl !UnwindSafe for HttpRangeSource
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more