When a message includes a message body encoded with the chunked transfer coding and the sender desires to send metadata in the form of trailer fields at the end of the message, the sender SHOULD generate a Trailer header field before the message body to indicate which fields will be present in the trailers.
Implementing this is not entirely trivial because trailers may include additional custom fields; so if we implement this, we'd have to require users to declare custom metadata in trailers up-front also.
See https://www.rfc-editor.org/rfc/rfc9110#name-processing-trailer-fields:
(my emphasis). However, RFC 7230 is not so lenient (https://datatracker.ietf.org/doc/html/rfc7230#section-4.4):
(emphasis in original).
Related ticket in the gRPC repo: https://github.com/grpc/grpc/issues/29540 .
Implementing this is not entirely trivial because trailers may include additional custom fields; so if we implement this, we'd have to require users to declare custom metadata in trailers up-front also.