Config Type — fiber Architecture
Architecture documentation for the Config type/interface in config.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 3f54182d_0e83_48c3_79b1_4bafee9473a9["Config"] 2d1f2031_965a_d14b_2256_317dd34f22ca["config.go"] 3f54182d_0e83_48c3_79b1_4bafee9473a9 -->|defined in| 2d1f2031_965a_d14b_2256_317dd34f22ca style 3f54182d_0e83_48c3_79b1_4bafee9473a9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
middleware/earlydata/config.go lines 13–33
type Config struct {
// Next defines a function to skip this middleware when returned true.
//
// Optional. Default: nil
Next func(c fiber.Ctx) bool
// IsEarlyData returns whether the request is an early-data request.
//
// Optional. Default: a function which checks if the "Early-Data" request header equals "1".
IsEarlyData func(c fiber.Ctx) bool
// AllowEarlyData returns whether the early-data request should be allowed or rejected.
//
// Optional. Default: a function which rejects the request on unsafe and allows the request on safe HTTP request methods.
AllowEarlyData func(c fiber.Ctx) bool
// Error is returned if an early-data request is rejected.
//
// Optional. Default: fiber.ErrTooEarly.
Error error
}
Defined In
Source
Frequently Asked Questions
What is the Config type?
Config is a type/interface in the fiber codebase, defined in middleware/earlydata/config.go.
Where is Config defined?
Config is defined in middleware/earlydata/config.go at line 13.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free