Home / Function/ hasFlashCookie() — fiber Function Reference

hasFlashCookie() — fiber Function Reference

Architecture documentation for the hasFlashCookie() function in redirect.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  cf29db56_fcc5_bec8_8566_3e6f18d136ff["hasFlashCookie()"]
  c50a8caf_2773_241c_9f34_49133f549127["redirect.go"]
  cf29db56_fcc5_bec8_8566_3e6f18d136ff -->|defined in| c50a8caf_2773_241c_9f34_49133f549127
  style cf29db56_fcc5_bec8_8566_3e6f18d136ff fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

redirect.go lines 49–60

func hasFlashCookie(header *fasthttp.RequestHeader) bool {
	rawHeaders := header.RawHeaders()
	if len(rawHeaders) == 0 {
		return false
	}

	if !bytes.Contains(rawHeaders, flashCookieNeedle) {
		return false
	}

	return header.Cookie(FlashCookieName) != nil
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does hasFlashCookie() do?
hasFlashCookie() is a function in the fiber codebase, defined in redirect.go.
Where is hasFlashCookie() defined?
hasFlashCookie() is defined in redirect.go at line 49.

Analyze Your Own Codebase

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

Try Supermodel Free