Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientIP ¶ added in v1.1.2
GetClientIP (request) Returns the client ip address from HTTP headers
func MimeTypeByExtension ¶
MimeTypeByExtension (extension) Return matching MimeType for file extension
Types ¶
type AcceptedLanguage ¶
AcceptedLanguage struct Language and q-factor weighting
func ParseAcceptLanguage ¶
func ParseAcceptLanguage(acceptLanguage string) []AcceptedLanguage
ParseAcceptLanguage (acceptLanguage) Use to parse browser 'Accept-Language' header including accepted language and q-factor weighting e. g. 'fr-CH, fr;q=0.9, en;q=0.8, de;q=0.7, *;q=0.5'
Click to show internal directories.
Click to hide internal directories.