/http-middlewares

:smirk: middleware for net/http

Primary LanguageGoMIT LicenseMIT

http-middlewares

http middleware fot net/http

GoDoc Go.Dev reference Build Status codecov Action Status Go Report Card Licence Tag

middleware

  • authj is an authorization middleware, it's based on casbin
  • gzap is gzap provides log handling using zap package.
  • nocache noCache is a simple piece of middleware that sets a number of HTTP headers to prevent a router (or subrouter) from being cached by an upstream proxy and/or client.
  • requestid is a middleware that injects a request ID into the context of each request.
  • traceid traceid is a middleware that injects a trace ID into the context of each request. A trace ID is a string of uuid.

mids

helper

Donation

if package help you a lot,you can support us by:

Alipay

alipay

WeChat Pay

wxpay