middleware

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationJsonMiddleware

type ApplicationJsonMiddleware struct{}

func NewApplicationJsonMiddleware

func NewApplicationJsonMiddleware() ApplicationJsonMiddleware

func (ApplicationJsonMiddleware) Middleware

type HttpMiddleware

type HttpMiddleware interface {
	Middleware(handler fasthttp.RequestHandler) fasthttp.RequestHandler
}

type ServerNameMiddleware

type ServerNameMiddleware struct {
	// contains filtered or unexported fields
}

func NewServerNameMiddleware

func NewServerNameMiddleware(cfg config.Config) ServerNameMiddleware

func (ServerNameMiddleware) Middleware

Middleware enforces a consistent `Server` header. If downstream handlers set their own Server value, it is copied into `X-Origin-Server` and replaced with the configured name.

Jump to

Keyboard shortcuts

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