Most of the experimental handlers are ported to work with iris's handler form, from third-party sources.
Iris has its own middleware form of
func(ctx iris.Context) but it's also compatible with all
net/http middleware forms. See here.
Here's a small list of useful third-party handlers:
|goth||OAuth, OAuth2 authentication. Example|
|permissions2||Cookies, users and permissions. Example|
|csp||Content Security Policy (CSP) support|
|delay||Add delays/latency to endpoints. Useful when testing effects of high latency|
|onthefly||Generate TinySVG, HTML and CSS on the fly|
|RestGate||Secure authentication for REST API endpoints|
|stats||Store information about your web application (response time, etc.)|
|VanGoH||Configurable AWS-Style HMAC authentication middleware|
|digits||Middleware that handles Twitter Digits authentication|
Feel free to put up your own middleware in this list!
Package basicauth provides http basic authentication via middleware.
|Package basicauth provides http basic authentication via middleware.|
Package logger provides request logging via middleware.
|Package logger provides request logging via middleware.|
Package pprof provides native pprof support via middleware.
|Package pprof provides native pprof support via middleware.|
Package rate implements rate limiter for Iris client requests.
|Package rate implements rate limiter for Iris client requests.|
Package recover provides recovery for specific routes or for the whole app via middleware.
|Package recover provides recovery for specific routes or for the whole app via middleware.|