Backplane. McpProtocol. Transport. StreamableHTTP. Headers
(backplane_mcp_protocol v0.5.0)
Copy Markdown
Builds request-local Streamable HTTP headers for legacy and modern MCP sends.
Modern routing fields are derived from the encoded wire request so configured values cannot disagree with the body that is actually sent.
Summary
Functions
Validates configured headers and canonicalizes their names to lower case.
Encodes one mirrored primitive using the MCP lower-case base64 sentinel.
Validates configured legacy headers and removes modern routing fields.
Validates and encodes a set of declared Mcp-Param-* headers.
Adds the negotiated legacy protocol header when that revision requires it.
Functions
Validates configured headers and canonicalizes their names to lower case.
Encodes one mirrored primitive using the MCP lower-case base64 sentinel.
Validates configured legacy headers and removes modern routing fields.
Validates and encodes a set of declared Mcp-Param-* headers.
Adds the negotiated legacy protocol header when that revision requires it.