Home / Function/ domainMatch() — fiber Function Reference

domainMatch() — fiber Function Reference

Architecture documentation for the domainMatch() function in cookiejar.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  0e804c7f_60c7_b68a_66be_fcfa4b000be4["domainMatch()"]
  1f636fe9_2e71_d567_5a28_0ab4e08b68c5["cookiejar.go"]
  0e804c7f_60c7_b68a_66be_fcfa4b000be4 -->|defined in| 1f636fe9_2e71_d567_5a28_0ab4e08b68c5
  style 0e804c7f_60c7_b68a_66be_fcfa4b000be4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

client/cookiejar.go lines 325–332

func domainMatch(host, domain string) bool {
	host = utils.ToLower(host)

	if host == domain {
		return true
	}
	return strings.HasSuffix(host, "."+domain)
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does domainMatch() do?
domainMatch() is a function in the fiber codebase, defined in client/cookiejar.go.
Where is domainMatch() defined?
domainMatch() is defined in client/cookiejar.go at line 325.

Analyze Your Own Codebase

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

Try Supermodel Free