gcookie

package
v0.0.0-...-3e416e1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cookies

type Cookies struct {
	// contains filtered or unexported fields
}

func New

func New(w http.ResponseWriter, r *http.Request) (cookie *Cookies)

func (*Cookies) Get

func (c *Cookies) Get(name string) (value string, err error)

func (*Cookies) Remove

func (c *Cookies) Remove(name string, options ...*gcore.CookieOptions)

Remove remove the given cookie

func (*Cookies) Set

func (c *Cookies) Set(name, val string, options ...*gcore.CookieOptions)

Set set the given cookie to the response and returns the current context to allow chaining. If options omit, it will use default options.

Jump to

Keyboard shortcuts

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