Documentation ¶
Overview ¶
Package mid provides HTTP middleware.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRequestID ¶
GetRequestID gets the request ID for a given request.
func RequestID ¶
RequestID ensures that a request ID exists on the request and is propogated to logging and the outgoing response.
func RequestLogger ¶
RequestLogger logs information about the request, including the method, URL, status, size, and handle duration.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.