pub fn encode_connect_response(
response: &ConnectResponse,
) -> Result<Builder<HeapAllocator>, RpcError>Expand description
Encodes a ConnectResponse into a Cap’n Proto message.
Matches cloudflared’s ConnectResponse.ToPogs: the error field stays a
null pointer when empty (capnp-go leaves it unset), keeping the wire
bytes identical to the reference implementation.