I am trying to implement HTTP in my server, and am unable to find ANY information about how to handle multiple trailer header fields (with chunked encoding).
The standard (https://www.rfc-editor.org/rfc/rfc2616#section-14.40) states: "The Trailer general field value indicates that the given set of header fields is present in the trailer of a message encoded with chunked transfer-coding."
But gives no indication whatsoever of how to specify multiple headers in this the Trailer
header.
For example, if a request or response had two trailer headers, Example1
and Example2
, how would you structure the Trailer
header?
Like this: Trailer: Example1 Example2
or Trailer: Example1,Example2
or what?