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 ¶
func (ApplicationJsonMiddleware) Middleware(next fasthttp.RequestHandler) fasthttp.RequestHandler
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 ¶
func (m ServerNameMiddleware) Middleware(next fasthttp.RequestHandler) fasthttp.RequestHandler
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.
Click to show internal directories.
Click to hide internal directories.