cookie

package
v0.0.0-...-8bff5d1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(w http.ResponseWriter, name string)

Delete a cookie.

func Get

func Get(r *http.Request, name string) (*http.Cookie, error)

Get deciphers and returns the cookie.

func GetValue

func GetValue(r *http.Request, name string) (string, error)

GetValue is like Get but returns only the value.

func IsSet

func IsSet(r *http.Request, name string) bool

IsSet returns whether the cookie is set or not.

func Set

func Set(w http.ResponseWriter, name, value, path string, age int) error

Set a cookie.

Types

This section is empty.

Jump to

Keyboard shortcuts

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