Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Middleware ¶ added in v0.10.0
type Middleware struct {
// contains filtered or unexported fields
}
Middleware is a middleware that terminates the request with a specified status code and body.
func NewMiddleware ¶
func NewMiddleware(options Options) *Middleware
NewMiddleware creates a new RequestTerminationMiddleware instance.
func (*Middleware) ServeHTTP ¶ added in v0.10.0
func (m *Middleware) ServeHTTP(_ context.Context, c *app.RequestContext)
Click to show internal directories.
Click to hide internal directories.