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

Method AcceptsEncodings

req.go:63–66  ·  view source on GitHub ↗

AcceptsEncodings checks if the specified encoding is acceptable.

(offers ...string)

Source from the content-addressed store, hash-verified

61
62// AcceptsEncodings checks if the specified encoding is acceptable.
63func (r *DefaultReq) AcceptsEncodings(offers ...string) string {
64 header := joinHeaderValues(r.c.fasthttp.Request.Header.PeekAll(HeaderAcceptEncoding))
65 return getOffer(header, acceptsOffer, offers...)
66}
67
68// AcceptsLanguages checks if the specified language is acceptable using
69// RFC 4647 Basic Filtering.

Callers

nothing calls this directly

Calls 2

joinHeaderValuesFunction · 0.85
getOfferFunction · 0.85

Tested by

no test coverage detected