go-server-timing icon indicating copy to clipboard operation
go-server-timing copied to clipboard

Support for trailers

Open mitar opened this issue 4 years ago • 1 comments

It seems Firefox supports them now (at least over HTTP2) and Chrome had support for them, but they have currently a regression: https://bugs.chromium.org/p/chromium/issues/detail?id=1280260

Maybe it is time to add support for trailers, too. So that we can add total handler time finally.

mitar avatar Feb 01 '22 17:02 mitar

OK, I figured out that it is easy to do it myself. I just issue an additional Server-Timing trailer header after request was handled (and set w.Header().Set("Trailer", "Server-Timing") before).

mitar avatar Feb 24 '22 10:02 mitar