http

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContentType_PlainText  = mime.TypeTextPlain
	ContentType_Json       = mime.TypeApplicationJson
	ContentType_JavaScript = mime.TypeApplicationJavascript
	ContentType_HtmlPage   = mime.TypeTextHtml
	ContentType_CssStyle   = mime.TypeTextCss
)
View Source
const (
	ErrFDuplicateCookie = "duplicate cookie: %s"
)

Variables

This section is empty.

Functions

func SetCookie

func SetCookie(rw http.ResponseWriter, cookie *http.Cookie)

SetCookie sets a cookie. Unfortunately, Go language is so ugly that it does not allow to check whether the specified cookie is already set or not.

func UnsetCookie

func UnsetCookie(rw http.ResponseWriter, cookie *http.Cookie)

UnsetCookie unsets 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