Documentation ¶
Index ¶
- func NegotiateCharset(header *string, charsets []string) (options []string, err locale.Error)
- func NegotiateContentType(header *string, contenttypes []string) (options []string, err locale.Error)
- func NegotiateEncoding(header *string, encodings []string) (options []string, err locale.Error)
- func NegotiateLanguage(header *string, languageTags []string) (options []string, err locale.Error)
- type ParseError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NegotiateCharset ¶
NegotiateCharset negotiates the character set (use the `Accept-Charset:` header).
func NegotiateContentType ¶
func NegotiateContentType(header *string, contenttypes []string) (options []string, err locale.Error)
NegotiateContentType negotiates the content type (use the `Accept:` header).
func NegotiateEncoding ¶
NegotiateEncoding negotiates the encoding (use the `Accept-Encoding:` header).
Types ¶
type ParseError ¶
ParseError is an error that was encountered while parsing the value for Header.
func (ParseError) Error ¶
func (e ParseError) Error() string
func (ParseError) L10NString ¶
func (e ParseError) L10NString(l locale.Spec) string
func (ParseError) Locales ¶
func (e ParseError) Locales() []locale.Spec
Click to show internal directories.
Click to hide internal directories.