GameServerWeb.Plugs.RequestTimer (game_server_web v1.0.935)

Copy Markdown

A plug that logs the total request duration at the end of the request. This runs before the Router and captures the entire pipeline duration.

The x-request-time response header is only included in non-production environments to avoid leaking server timing information to attackers.

Summary

Functions

call(conn, opts)

init(opts)