cookie

package
v0.0.0-...-62634f4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearCookie

func ClearCookie(w http.ResponseWriter, r *http.Request)

ClearCookie get rid of the existing cookie

func Configure

func Configure()

Configure see main.go configure()

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

Cookie get the vouch jwt cookie

func SameSite

func SameSite() http.SameSite

SameSite return cfg.Cfg.Cookie.SameSite as http.Samesite if cfg.Cfg.Cookie.SameSite is unconfigured return http.SameSite(0) see https://github.com/Choo57/vouch-proxy-2/issues/210

func SetCookie

func SetCookie(w http.ResponseWriter, r *http.Request, val string)

SetCookie http

Types

This section is empty.

Jump to

Keyboard shortcuts

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