response.go — fiber Source File
Architecture documentation for response.go, a go file in the fiber codebase.
Entity Profile
Relationship Graph
Source Code
package idempotency
// response is a struct that represents the response of a request.
// generation tool `go install github.com/tinylib/msgp@latest`
//
// Idempotency payloads are stored in backing storage, so keep headers/bodies bounded.
//
//go:generate msgp -o=response_msgp.go -tests=true -unexported
type response struct {
Headers map[string][]string `msg:"hs,limit=1024"` // HTTP header count norms are well below this.
Body []byte `msg:"b"` // Idempotency bodies are bounded by storage policy, not msgp limits.
StatusCode int `msg:"sc"`
}
Source
Frequently Asked Questions
What does response.go do?
response.go is a source file in the fiber codebase, written in go.
Where is response.go in the architecture?
response.go is located at middleware/idempotency/response.go (directory: middleware/idempotency).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free