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_source::SourceRegistry with register: both http and https register as bytes-shape sources, so reg.open(uri) yields SourceOutput::Bytes(_).

let mut reg = oxideav_source::with_defaults();
oxideav_http::register(&mut reg);
let _r = reg.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
Register the http and https schemes on the registry as bytes sources. Both schemes share the same opener (open_http).