New() — fiber Function Reference
Architecture documentation for the New() function in client.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD b690338b_3cef_7687_681a_0a356d31fb52["New()"] 0a898b85_5e70_235c_a863_b41e3d48af64["client.go"] b690338b_3cef_7687_681a_0a356d31fb52 -->|defined in| 0a898b85_5e70_235c_a863_b41e3d48af64 fa965401_cda1_cdbc_c318_9f4ba0971180["NewWithClient()"] b690338b_3cef_7687_681a_0a356d31fb52 -->|calls| fa965401_cda1_cdbc_c318_9f4ba0971180 style b690338b_3cef_7687_681a_0a356d31fb52 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
client/client.go lines 752–757
func New() *Client {
// Follow-up performance optimizations:
// Try to use a pool to reduce the memory allocation cost for the Fiber client and the fasthttp client.
// If possible, also consider pooling other structs (e.g., request headers, cookies, query parameters, path parameters).
return NewWithClient(&fasthttp.Client{})
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does New() do?
New() is a function in the fiber codebase, defined in client/client.go.
Where is New() defined?
New() is defined in client/client.go at line 752.
What does New() call?
New() calls 1 function(s): NewWithClient.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free