This results in 2 DATA frames being sent from a server:
func(w http.ResponseWriter, r *http.Request) {
w.Write("foo")
w.(http.Flusher).Flush()
w.Write("bar")
w.(http.Flusher).Flush()
}
This results in 1 HEADERS frames being sent from a server:
func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Trailer:X", "a")
w.(http.Flusher).Flush()
w.Header().Set("Trailer:Y", "b")
w.(http.Flusher).Flush()
}
Is there any way to get trailer frames sent as multiple HEADERS frames without using the framer api?