connect-bidi-web
    Preparing search index...

    HeadersMessage is the JSON payload of a headers envelope (flag 0x06). Like Connect's EndStreamResponse, it is defined directly in code rather than as a protobuf message. On the wire it looks like:

    {"metadata": {":path": ["/pkg.Service/Method"], "content-type": ["application/connect+proto"]}}
    

    Metadata keys are HTTP-header-shaped; values are string lists. Keys beginning with ":" are pseudo-headers (only ":path" is currently used) and are not surfaced to applications. The Go implementation defines the equivalent HeaderMessage type in internal/connectprotocol.

    interface HeadersMessage {
        metadata?: Record<string, string[]>;
    }
    Index
    metadata?: Record<string, string[]>