DefaultCtx Type — fiber Architecture
Architecture documentation for the DefaultCtx type/interface in ctx.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 82ab96f5_3f48_3189_451b_041902a53b92["DefaultCtx"] cad7e9fd_e7ea_d2d5_dcdb_0dc8cb836c4d["ctx.go"] 82ab96f5_3f48_3189_451b_041902a53b92 -->|defined in| cad7e9fd_e7ea_d2d5_dcdb_0dc8cb836c4d style 82ab96f5_3f48_3189_451b_041902a53b92 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
ctx.go lines 54–77
type DefaultCtx struct {
handlerCtx CustomCtx // Active custom context implementation, if any
DefaultReq // Default request api
DefaultRes // Default response api
app *App // Reference to *App
route *Route // Reference to *Route
fasthttp *fasthttp.RequestCtx // Reference to *fasthttp.RequestCtx
bind *Bind // Default bind reference
redirect *Redirect // Default redirect reference
viewBindMap Map // Default view map to bind template engine
values [maxParams]string // Route parameter values
baseURI string // HTTP base uri
pathOriginal string // Original HTTP path
flashMessages redirectionMsgs // Flash messages
path []byte // HTTP path with the modifications by the configuration
detectionPath []byte // Route detection path
treePathHash int // Hash of the path for the search in the tree
indexRoute int // Index of the current route
indexHandler int // Index of the current handler
methodInt int // HTTP method INT equivalent
abandoned atomic.Bool // If true, ctx won't be pooled until ForceRelease is called
matched bool // Non use route matched
skipNonUseRoutes bool // Skip non-use routes while iterating middleware
}
Defined In
Source
Frequently Asked Questions
What is the DefaultCtx type?
DefaultCtx is a type/interface in the fiber codebase, defined in ctx.go.
Where is DefaultCtx defined?
DefaultCtx is defined in ctx.go at line 54.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free