Expand description
Source auto-detection: map a locator to the source that recognises it.
Backs the provider-less omni-dev transcript fetch <url> path (#1187).
Each registered source’s static TranscriptSource::matches is probed in
registration order; the first match is constructed and returned behind a
Box<dyn TranscriptSource> for runtime dispatch. Detection is pure string
inspection — no network — so an unrecognised locator fails fast before any
HTTP.
Functions§
- detect
- Probe every registered source in priority order and construct the first
whose
TranscriptSource::matchesrecognisesurl.