Configure > Server Timing Directives
The server timing handler turns on the Server Timing feature. This document describes the configuration directives of the handler.
"server-timing"
- Description:
-
A flag indicating how
server-timingheader and trailer should be served.If the value is
ON, H2O adds theserver-timingheader and trailer (if possible) to the response. The header is always added, but the trailer isn't if all of the following conditions are met.- The protocol used for the request is HTTP/1.1
transfer encodingof the response is notchunked
If the value is
ENFORCE, H2O forces the response to use chunked encoding by removingcontent-lengthheader.If the value is
OFF, the feature is disabled.The
server-timingheader and trailer includes the following metrics. For now, all metrics have thedurattribute whose values are exactly equal to one of the Access Log Extensions with similar names. To get the meaning of eachdurattribute, seeaccess-log.Header Metrics Name Log Extension connectconnect-timerequest-headerrequest-header-timerequest-bodyrequest-body-timerequest-totalrequest-total-timeprocessprocess-timeproxy.idleproxy.idle-timeproxy.connectproxy.connect-timeproxy.requestproxy.request-timeproxy.processproxy.process-timeTrailer Metrics Name Log Extension responseresponse-timetotaltotal-time/durationproxy.responseproxy.response-timeproxy.totalproxy.total-time - Level:
- global, host, path, extension
- Default:
OFF