Skip to content

takt-corp/gin-request-id

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Gin middleware that adds `X-Request-ID` header to all request and responses for easy tracking.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published