network

package
v0.0.0-...-a57500f Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2021 License: MIT Imports: 7 Imported by: 4

Documentation

Index

Constants

View Source
const (
	MAX_HTTP_CACHE_DAYS = 365
	DEF_REQUEST_LANG    = "en"
)

Variables

This section is empty.

Functions

func AcceptLanguage

func AcceptLanguage(r *http.Request) string

func AcceptLanguageDef

func AcceptLanguageDef(r *http.Request, defLang string) string

func CacheFor

func CacheFor(h http.Header, days int, immutable ...bool)

func DisableCache

func DisableCache(h http.Header)

func LanguageList

func LanguageList(r *http.Request) string

func PrefferedLanguage

func PrefferedLanguage(r *http.Request) string

func QualityWeighted

func QualityWeighted(r *http.Request, p string) []string

func RequestIsDev

func RequestIsDev(r *http.Request) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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