Backplane. McpProtocol. Transport. RequestContext
(backplane_mcp_protocol v0.6.0)
Copy Markdown
Immutable protocol context captured for one outbound transport send.
The context belongs to the request, not the connection. This lets one HTTP transport carry a modern discovery probe followed by a legacy initialize request without retaining a transport-global protocol era.
Summary
Functions
Encodes one primitive request parameter for safe HTTP header transport.
Returns true when this individual request uses the stateless modern protocol.
Normalizes and encodes the request's declared Mcp-Param-* mirrors.
Types
@type t() :: %Backplane.McpProtocol.Transport.RequestContext{ era: Backplane.McpProtocol.Protocol.Profile.era(), lifecycle: Backplane.McpProtocol.Protocol.Profile.lifecycle(), method: String.t(), parameter_headers: map(), params: map(), profile: Backplane.McpProtocol.Protocol.Profile.t(), protocol_version: String.t() }
Functions
Encodes one primitive request parameter for safe HTTP header transport.
Returns true when this individual request uses the stateless modern protocol.
Normalizes and encodes the request's declared Mcp-Param-* mirrors.