Accepts checks if the specified extensions or content types are acceptable.
(offers ...string)
| 49 | |
| 50 | // Accepts checks if the specified extensions or content types are acceptable. |
| 51 | func (r *DefaultReq) Accepts(offers ...string) string { |
| 52 | header := joinHeaderValues(r.c.fasthttp.Request.Header.PeekAll(HeaderAccept)) |
| 53 | return getOffer(header, acceptsOfferType, offers...) |
| 54 | } |
| 55 | |
| 56 | // AcceptsCharsets checks if the specified charset is acceptable. |
| 57 | func (r *DefaultReq) AcceptsCharsets(offers ...string) string { |
nothing calls this directly
no test coverage detected