DefaultCtx is the default implementation of the Ctx interface generation tool `go install github.com/vburenin/ifacemaker@f30b6f9bdbed4b5c4804ec9ba4a04a999525c202` https://github.com/vburenin/ifacemaker/blob/f30b6f9bdbed4b5c4804ec9ba4a04a999525c202/ifacemaker.go#L14-L31 go:generate ifacemaker --file
| 55 | // |
| 56 | //go:generate ifacemaker --file ctx.go --file req.go --file res.go --struct DefaultCtx --iface Ctx --pkg fiber --promoted --output ctx_interface_gen.go --not-exported true --iface-comment "Ctx represents the Context which hold the HTTP request and response.\nIt has methods for the request query string, parameters, body, HTTP headers and so on." |
| 57 | type DefaultCtx struct { |
| 58 | handlerCtx CustomCtx // Active custom context implementation, if any |
| 59 | DefaultReq // Default request api |
| 60 | DefaultRes // Default response api |
| 61 | app *App // Reference to *App |
| 62 | route *Route // Reference to *Route |
| 63 | fasthttp *fasthttp.RequestCtx // Reference to *fasthttp.RequestCtx |
| 64 | bind *Bind // Default bind reference |
| 65 | redirect *Redirect // Default redirect reference |
| 66 | reclaim *reclaimLatch // Coordinates safe pool reclamation of an abandoned ctx; nil on the hot path |
| 67 | viewBindMap Map // Default view map to bind template engine |
| 68 | values [maxParams]string // Route parameter values |
| 69 | baseURI string // HTTP base uri |
| 70 | pathOriginal string // Original HTTP path |
| 71 | flashMessages redirectionMsgs // Flash messages |
| 72 | path []byte // HTTP path with the modifications by the configuration |
| 73 | detectionPath []byte // Route detection path |
| 74 | treePathHash int // Hash of the path for the search in the tree |
| 75 | indexRoute int // Index of the current route |
| 76 | indexHandler int // Index of the current handler |
| 77 | methodInt int // HTTP method INT equivalent |
| 78 | isAbandoned atomic.Bool // If true, ctx won't be pooled until ForceRelease is called |
| 79 | isMatched bool // Non use route matched |
| 80 | shouldSkipNonUseRoutes bool // Skip non-use routes while iterating middleware |
| 81 | isUserContextSet bool // User context was stored in fasthttp user values |
| 82 | } |
| 83 | |
| 84 | // TLSHandler hosts the callback hooks Fiber invokes while negotiating TLS |
| 85 | // connections, including optional client certificate lookups. |
nothing calls this directly
no outgoing calls
no test coverage detected