middleware

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package middleware provides built-in middlewares for weed, offering a drop-in replacement for the echo middleware package functions used in ocypode.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger() whttp.MiddlewareFunc

Logger returns a middleware that logs each request's method, path, status and elapsed time — equivalent to echo/middleware.Logger().

func Recover

func Recover() whttp.MiddlewareFunc

Recover returns a middleware that recovers from panics and returns HTTP 500 — equivalent to echo/middleware.Recover().

func Secure

func Secure() whttp.MiddlewareFunc

Secure returns a middleware that sets common security headers — equivalent to echo/middleware.Secure().

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL