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

Struct endpointMiddleware

http/middleware.go:63–64  ·  view source on GitHub ↗

endpointMiddleware is responsible for executing the matched endpoint's request delegate. It should always be the last middleware in the pipeline. If no endpoint was matched by the routing middleware, it passes control to the next delegate (which is typically the terminal no-op), allowing the respon

Source from the content-addressed store, hash-verified

61// to the next delegate (which is typically the terminal no-op), allowing
62// the response to fall through as a 404 or be handled elsewhere.
63type endpointMiddleware struct {
64}
65
66// newEndpointMiddleware creates a new endpointMiddleware.
67// This middleware should always be the last in the pipeline.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected