package
0.2.10
Repository: https://github.com/mwm-io/gapi.git
Documentation: pkg.go.dev

# Structs

WithMiddlewares implements the request.MiddlewareAware interface and is meant to be embedded into the final handler.

# Interfaces

Handler is able to respond to a http request and return the response it wants to write and an error.
Middleware is able to wrap a given Handler to build a new one.
MiddlewareAware is a struct containing its own middlewares.
SortableMiddleware embeds Middleware type with a Weight method in order to get sorted.

# Type aliases

ByWeight sorts a list of Middleware by Weight.
Factory is a function that return a new Handler It is useful if you want to create a Handler that will carry request-scoped data.
Func type is an adapter to allow the use of ordinary functions as HTTP handlers.