Home / Type/ cachedHeader Type — fiber Architecture

cachedHeader Type — fiber Architecture

Architecture documentation for the cachedHeader type/interface in manager.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  933fe600_5585_aa44_3521_b965eacf2b0d["cachedHeader"]
  5f61d399_7b5a_6a35_411a_ef0a25ea52d4["manager.go"]
  933fe600_5585_aa44_3521_b965eacf2b0d -->|defined in| 5f61d399_7b5a_6a35_411a_ef0a25ea52d4
  style 933fe600_5585_aa44_3521_b965eacf2b0d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

middleware/cache/manager.go lines 19–38

type item struct {
	headers         []cachedHeader `msg:",limit=1024"` // Typical HTTP header count stays well below this.
	body            []byte         // Cache bodies are bounded by storage policy, not msgp limits.
	ctype           []byte         `msg:",limit=256"`  // Content-Type values are short per RFCs.
	cencoding       []byte         `msg:",limit=128"`  // Content-Encoding is typically a short token.
	cacheControl    []byte         `msg:",limit=2048"` // Cache-Control directives are bounded.
	expires         []byte         `msg:",limit=128"`  // Expires is a short HTTP-date string.
	etag            []byte         `msg:",limit=256"`  // ETags are small tokens/quoted strings.
	date            uint64
	status          int
	age             uint64
	exp             uint64
	ttl             uint64
	forceRevalidate bool
	revalidate      bool
	shareable       bool
	private         bool
	// used for finding the item in an indexed heap
	heapidx int
}

Frequently Asked Questions

What is the cachedHeader type?
cachedHeader is a type/interface in the fiber codebase, defined in middleware/cache/manager.go.
Where is cachedHeader defined?
cachedHeader is defined in middleware/cache/manager.go at line 19.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free