Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 652 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 652 Bytes

middleware Build Status

Useful middlewares for Pipes library.

What's in the box?

Context middleware

Creates request Context and passes it forward.

Panic recovery middleware

Handles panic and allows to provide user friendly message or redirect to error page using http.ResponseWriter.

Rate limiter middleware (NOT TESTED IN PRODUCTION)

Limits network requests from single IP using provided time function.

Cookie auth middleware

Decodes user object from requests cookie and adds to context