Skip to main content

Module origin

Module origin 

Source
Expand description

JIT / origin mode — package on HTTP request (Phase 5).

A minimal HTTP/1.1 origin that serves:

  • GET /healthok
  • GET /package?input=<path>&… → runs crate::package into a temp dir and returns master.m3u8 or manifest.mpd based on Accept / format=
  • GET /out/<rel> → serves a previously packaged object from the origin cache

Optional HTTPS (--tls-cert / --tls-key) is rustls; optional Basic auth is --auth user:password. Not a production CDN.

Structs§

OriginConfig
Configuration for serve.

Functions§

serve
Run the origin until the process is killed. Spawns one thread per connection.