MCPcopy
hub / github.com/gofiber/fiber / AcceptLanguage

Method AcceptLanguage

req.go:232–234  ·  view source on GitHub ↗

AcceptLanguage returns the Accept-Language request header.

()

Source from the content-addressed store, hash-verified

230
231// AcceptLanguage returns the Accept-Language request header.
232func (c *DefaultCtx) AcceptLanguage() string {
233 return c.app.toString(c.fasthttp.Request.Header.Peek(HeaderAcceptLanguage))
234}
235
236// AcceptEncoding returns the Accept-Encoding request header.
237func (c *DefaultCtx) AcceptEncoding() string {

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected