http

package
v0.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ContentType_TextPlain       = mime.TypeTextPlain
	ContentType_ApplicationJson = mime.TypeApplicationJson
)
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