Skip to main content

Module content_source

Module content_source 

Source
Expand description

Resolve a ContentSource to its string content.

Hoisted to core so multiple stages (release, changelog, …) can share one implementation. Supports Inline, FromFile (template-render the path, read the file), and FromUrl (template-render URL + headers, fetch via HTTP GET with retries on transient errors / 5xx, fail fast on 4xx).

FromUrl enforces a 256 KiB body cap and rejects CR/LF in rendered header values to defend against header-injection via templated user data.

Functions§

resolve
Resolve a ContentSource to its string content.