Documentation ¶ Index ¶ func DelCookie(w http.ResponseWriter, r *http.Request, name string) func IsHTTPS(r *http.Request) bool func SetCookie(w http.ResponseWriter, r *http.Request, name, value string) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func DelCookie ¶ func DelCookie(w http.ResponseWriter, r *http.Request, name string) DelCookie deletes a cookie. func IsHTTPS ¶ func IsHTTPS(r *http.Request) bool IsHTTPS is a helper function that evaluates the http.Request and returns True if the Request uses HTTPS. It is able to detect, using the X-Forwarded-Proto, if the original request was HTTPS and routed through a reverse proxy with SSL termination. func SetCookie ¶ func SetCookie(w http.ResponseWriter, r *http.Request, name, value string) SetCookie writes the cookie value. Types ¶ This section is empty. Source Files ¶ View all Source files httputil.go Click to show internal directories. Click to hide internal directories.