Home / Type/ Cookie Type — fiber Architecture

Cookie Type — fiber Architecture

Architecture documentation for the Cookie type/interface in res.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  ba5717e5_6da9_2a62_5904_5a7a1805c7e6["Cookie"]
  4ab93de8_955a_4087_8264_32cf8000452f["res.go"]
  ba5717e5_6da9_2a62_5904_5a7a1805c7e6 -->|defined in| 4ab93de8_955a_4087_8264_32cf8000452f
  style ba5717e5_6da9_2a62_5904_5a7a1805c7e6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

res.go lines 106–118

type Cookie struct {
	Expires     time.Time `json:"expires"`      // The expiration date of the cookie
	Name        string    `json:"name"`         // The name of the cookie
	Value       string    `json:"value"`        // The value of the cookie
	Path        string    `json:"path"`         // Specifies a URL path which is allowed to receive the cookie
	Domain      string    `json:"domain"`       // Specifies the domain which is allowed to receive the cookie
	SameSite    string    `json:"same_site"`    // Controls whether or not a cookie is sent with cross-site requests
	MaxAge      int       `json:"max_age"`      // The maximum age (in seconds) of the cookie
	Secure      bool      `json:"secure"`       // Indicates that the cookie should only be transmitted over a secure HTTPS connection
	HTTPOnly    bool      `json:"http_only"`    // Indicates that the cookie is accessible only through the HTTP protocol
	Partitioned bool      `json:"partitioned"`  // Indicates if the cookie is stored in a partitioned cookie jar
	SessionOnly bool      `json:"session_only"` // Indicates if the cookie is a session-only cookie
}

Defined In

Frequently Asked Questions

What is the Cookie type?
Cookie is a type/interface in the fiber codebase, defined in res.go.
Where is Cookie defined?
Cookie is defined in res.go at line 106.

Analyze Your Own Codebase

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

Try Supermodel Free