v0.2.0
Jett v0.2.0
Middleware -
Some essential middleware are provided out of the box in github.com/saurabh0719/jett/middleware
-
-
RequestID
: Injects a request ID into the context of each
request -
Logger
: Log request paths, methods, status code as well as execution duration -
Recoverer
: Recover and handlepanic
-
NoCache
: Sets a number of HTTP headers to prevent
a router (or subrouter) from being cached by an upstream proxy and/or client -
BasicAuth
: Basic Auth middleware, RFC 2617, Section 2
API mods -
Changed PathParams
to URLParams
and updated the docs.