Replaces application response metadata before the first send or handler return. Entries are copied by the exchange; the caller may immediately release them. Invalid metadata leaves the previous block intact. Client calls and committed response headers return FAILED_PRECONDITION without cancelling the RPC. .
Signature
set_initial_metadata :: (call: *Call, entries: [] Metadata_Entry) -> Status
reply :: (call: *Call, data: *void) -> Status {
status := set_initial_metadata(call, Metadata_Entry.[.{ "x-id", "123" }]);
if status.code != .OK return status;
return send_bytes(call, u8.[1]);
}