cookies

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete added in v2.3.0

func Delete(w http.ResponseWriter, name string, options ...Variadic)

func New added in v2.2.5

func New(w http.ResponseWriter, name, value string, options ...Variadic)

func Secure

func Secure(w http.ResponseWriter, name, value string, options ...Variadic)

Types

type Options

type Options struct {
	Domain string
	Secure bool
	HTTP   bool          // HTTP represents HTTP-Only Cookie settings
	Site   http.SameSite // Site represents Same-Site cookie settings
}

type Variadic

type Variadic func(o *Options)

Jump to

Keyboard shortcuts

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