/** * RFC 9421 HTTP Message Signatures — sign outgoing requests with the * standard `Signature-Input` + `Signature` headers. * * Cloudflare's Verified Bots program and the OpenAI Operator use 9421 * for cryptographic request authentication. The algorithm: * * 1. Build the signature base from the chosen components (derived * pseudo-headers like `@method`, `@target-uri`, plus regular * headers). * 2. Append a `@signature-params` line carrying the components * list, optional `keyid`, `alg`, `created`, `expires`, `nonce`, * `tag` parameters. * 3. Sign the base with `crypto.subtle.sign` and emit the headers: * `Signature-Input: