HTTPHandlers
Handle Requests
Adapt handler methods into the HTTP request pipeline.
Handlers process a matched request and return a response result or an error.
type Handler interface {
// Handle processes one request and optionally returns a response result.
Handle(ctx *Context) (Result, error)
}Most application code does not implement Handler manually. Use http.Handle
or http.HandleResult to adapt controller methods.
