Expand description
A Tower Layer that advertises a C2PA Manifest Store on every response.
The header is appended, never set: a response may already carry Link
fields for preload, canonical, or pagination hints, and replacing them would
break unrelated behaviour.
§Scope
This attaches and reads a header. It deliberately does not inspect request or response bodies to detect embedded provenance: doing so means buffering the entire body before it can be forwarded, which turns a streaming proxy into an unbounded memory sink and hands any client a denial of service. A body-inspecting middleware needs a mandatory size cap and a considered failure mode, and belongs behind its own explicit opt-in rather than in the layer that writes a header.
Structs§
- Manifest
Link Layer - A
Layerthat appends ac2pa-manifestlink to every response. - Manifest
Link Service - The
Serviceproduced byManifestLinkLayer. - Response
Future - Appends the header once the inner service resolves.
Constants§
- LINK
- The
Linkheader name.
Functions§
- append_
to - Append a
c2pa-manifestlink to a header map. - extract_
from - The
c2pa-manifestlink advertised by a header map, if exactly one is.