cookie

package
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 1 Imported by: 4

Documentation

Index

Constants

View Source
const (
	// CookieSameSiteLaxMode sets the SameSite flag with the "Lax" parameter
	CookieSameSiteLaxMode = "Lax"
	// CookieSameSiteStrictMode sets the SameSite flag with the "Strict" parameter
	CookieSameSiteStrictMode = "Strict"
	// CookieSameSiteNoneMode sets the SameSite flag with the "None" parameter
	// see https://tools.ietf.org/html/draft-west-cookie-incrementalism-00
	CookieSameSiteNoneMode = "None"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cookie struct {
	Key      string
	Value    string
	Expire   time.Time
	MaxAge   int
	Domain   string
	Path     string
	HttpOnly bool
	Secure   bool
	SameSite CookieSameSite
}

type CookieSameSite

type CookieSameSite string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL