AcceptsCharsets checks if the specified charset is acceptable.
(offers ...string)
| 55 | |
| 56 | // AcceptsCharsets checks if the specified charset is acceptable. |
| 57 | func (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. |
| 63 | func (r *DefaultReq) AcceptsEncodings(offers ...string) string { |
nothing calls this directly
no test coverage detected