Skip to content

Execution context

Method Gives
Context(), SetContext(ctx) the request context; replace it for later stages and the handler
HTTP().Request(), HTTP().Response() the request and response writer
Route() method, path pattern, version, controller, handler name
Controller() the controller’s reflect.Type
Kind() dygo.KindHTTP (other transports later)

Enhancers are shared by all requests, so they must be safe for concurrent use.