Skip to main content

Crate oxideav_http

Crate oxideav_http 

Source
Expand description

HTTP/HTTPS source driver for oxideav.

Implements Read + Seek over HTTP Range requests so any container demuxer that takes a Box<dyn BytesSource> can read directly from a URL. Servers must support Range: bytes=… (most static-file hosts do; we verify with a HEAD at construction).

Wire it into a oxideav_core::RuntimeContext with register: both http and https register as bytes-shape sources, so ctx.sources.open(uri) yields SourceOutput::Bytes(_). For callers that hold a bare oxideav_source::SourceRegistry use register_source directly.

let mut ctx = oxideav_core::RuntimeContext::new();
oxideav_http::register(&mut ctx);
let _r = ctx.sources.open("https://example.com/clip.mp4").unwrap();

Structs§

HttpSource
ReadSeek over an HTTP/HTTPS resource, using Range requests.

Functions§

open_http
Open a URL as a seekable byte source.
register
Install the http + https schemes into a full runtime context.
register_source
Register the http and https schemes on a bare SourceRegistry as bytes sources. Both schemes share the same opener (open_http).