Procyon|Docs
HTTPPipeline

Request Pipeline

Understand the request pipeline around endpoint execution.

The HTTP pipeline receives a request, creates an http.Context, matches an endpoint, runs middleware, and eventually invokes the matched handler delegate.

The important pipeline contract is RequestDelegate:

request.go
type RequestDelegate func(ctx *Context) error

A delegate represents the next step in the pipeline. Middleware can call it to continue, or return early to stop the request.