Have read in the blog that in HTTP/2 the trailer data is present in HEADER frame, and I am confused what exactly is the difference when we set headers to gRPC response vs setting trailer metadata to it. Any help would be appreciated.
Have read in the blog that in HTTP/2 the trailer data is present in HEADER frame, and I am confused what exactly is the difference when we set headers to gRPC response vs setting trailer metadata to it. Any help would be appreciated.
In gRPC's protocol definition, trailer metadata is the HEADER frames sent marking the end of an RPC. There is always trailer metadata sent by server even if the call produces an immediate error (e.g., UNIMPLEMENTED), which is Trailers-Only .