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

Method AcceptsCharsets

req.go:57–60  ·  view source on GitHub ↗

AcceptsCharsets checks if the specified charset is acceptable.

(offers ...string)

Source from the content-addressed store, hash-verified

55
56// AcceptsCharsets checks if the specified charset is acceptable.
57func (r *DefaultReq) AcceptsCharsets(offers ...string) string {
58 header := joinHeaderValues(r.c.fasthttp.Request.Header.PeekAll(HeaderAcceptCharset))
59 return getOffer(header, acceptsOffer, offers...)
60}
61
62// AcceptsEncodings checks if the specified encoding is acceptable.
63func (r *DefaultReq) AcceptsEncodings(offers ...string) string {

Callers

nothing calls this directly

Calls 2

joinHeaderValuesFunction · 0.85
getOfferFunction · 0.85

Tested by

no test coverage detected