Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMiddleware ¶
func NewMiddleware(next http.Handler, opts ...MiddlewareOpts) http.Handler
Types ¶
type Middleware ¶
func (Middleware) ServeHTTP ¶
func (mw Middleware) ServeHTTP(w http.ResponseWriter, r *http.Request)
type MiddlewareOpts ¶
type MiddlewareOpts func(*Middleware)
func WithHTTPOnly ¶
func WithHTTPOnly(httpOnly bool) MiddlewareOpts
func WithSecure ¶
func WithSecure(secure bool) MiddlewareOpts
Click to show internal directories.
Click to hide internal directories.