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

Method AcceptsLanguagesExtended

req.go:77–80  ·  view source on GitHub ↗

AcceptsLanguagesExtended checks if the specified language is acceptable using RFC 4647 Extended Filtering.

(offers ...string)

Source from the content-addressed store, hash-verified

75// AcceptsLanguagesExtended checks if the specified language is acceptable using
76// RFC 4647 Extended Filtering.
77func (r *DefaultReq) AcceptsLanguagesExtended(offers ...string) string {
78 header := joinHeaderValues(r.c.fasthttp.Request.Header.PeekAll(HeaderAcceptLanguage))
79 return getOffer(header, acceptsLanguageOfferExtended, offers...)
80}
81
82// App returns the *App reference to the instance of the Fiber application
83func (r *DefaultReq) App() *App {

Callers

nothing calls this directly

Calls 2

joinHeaderValuesFunction · 0.85
getOfferFunction · 0.85

Tested by

no test coverage detected