MCPcopy Create free account
hub / github.com/codnect/procyon / Middleware

Interface Middleware

http/middleware.go:20–22  ·  view source on GitHub ↗

Middleware represents a component in the request pipeline that operates on the raw request/response level. It executes before and after the handler chain but has no access to the structured Result.

Source from the content-addressed store, hash-verified

18// on the raw request/response level. It executes before and after the
19// handler chain but has no access to the structured Result.
20type Middleware interface {
21 Invoke(ctx *Context, next RequestDelegate) error
22}
23
24// routingMiddleware is responsible for matching the incoming request
25// to a registered endpoint. It runs early in the pipeline so that

Callers 4

buildChainFunction · 0.65
LoadFunction · 0.65
TestConstructor_InvokeFunction · 0.65
createInstanceMethod · 0.65

Implementers 3

routingMiddlewarehttp/middleware.go
endpointMiddlewarehttp/middleware.go
Constructorcomponent/constructor.go

Calls

no outgoing calls

Tested by

no test coverage detected