Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 479 Bytes

README.md

File metadata and controls

12 lines (7 loc) · 479 Bytes

X-Request-ID for Gin

Gin middleware that adds X-Request-ID header to all request and responses for easy tracking. If X-Request-ID header is present on the request the same value will be returned on the response. If it is empty, one will be generated and attached to the response.

Learn more about X-Request-ID

    r := gin.New()
    r.Use(ginrequestid.RequestIDMiddleware)