Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// RequestIDHeaderName represents x-request-id key response header
RequestIDHeaderName = "x-request-id"
)
Exported values to allow easy customization of HTTP response headers in the future
Functions ¶
func RequestIDMiddleware ¶
func RequestIDMiddleware() lit.HandlerFunc
RequestIDMiddleware ensures each request has a unique Request ID. If the Request ID is provided in the request header, it uses that; otherwise, it generates a new one and injects it into the request context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.