The Server-Timing header name.
Equations
- PostgREST.Response.Performance.serverTimingHeader = "Server-Timing"
Instances For
Format a Server-Timing header value.
Format: "total;dur=123.4"
Equations
- PostgREST.Response.Performance.serverTimingValue totalMs = toString "total;dur=" ++ toString totalMs
Instances For
def
PostgREST.Response.Performance.timingHeaders
(totalMs : Nat)
(planMs execMs : Option Nat := none)
:
Format timing headers for a response.