# Functions
AccessHandler returns a handler that call f after each request.
CtxWithID adds the given xid.ID to the context.
CustomHeaderHandler adds given header from request's header as a field to the context's logger using fieldKey as field key.
EtagHandler adds Etag header from response's header as a field to the context's logger using fieldKey as field key.
FromRequest gets the logger in the request's context.
HostHandler adds the request's host as a field to the context's logger using fieldKey as field key.
HTTPVersionHandler is similar to ProtoHandler, but it does not store the "HTTP/" prefix in the protocol name.
IDFromCtx returns the unique id associated to the context if any.
IDFromRequest returns the unique id associated to the request if any.
MethodHandler adds the request method as a field to the context's logger using fieldKey as field key.
NewHandler injects log into requests context.
ProtoHandler adds the requests protocol version as a field to the context logger using fieldKey as field Key.
RefererHandler adds the request's referer as a field to the context's logger using fieldKey as field key.
RemoteAddrHandler adds the request's remote address as a field to the context's logger using fieldKey as field key.
RemoteIPHandler is similar to RemoteAddrHandler, but logs only an IP, not a port.
RequestHandler adds the request method and URL as a field to the context's logger using fieldKey as field key.
RequestIDHandler returns a handler setting a unique id to the request which can be gathered using IDFromRequest(req).
URLHandler adds the requested URL as a field to the context's logger using fieldKey as field key.
UserAgentHandler adds the request's user-agent as a field to the context's logger using fieldKey as field key.