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

Method Accepts

req_interface_gen.go:14–14  ·  view source on GitHub ↗

Accepts checks if the specified extensions or content types are acceptable.

(offers ...string)

Source from the content-addressed store, hash-verified

12type Req interface {
13 // Accepts checks if the specified extensions or content types are acceptable.
14 Accepts(offers ...string) string
15 // AcceptsCharsets checks if the specified charset is acceptable.
16 AcceptsCharsets(offers ...string) string
17 // AcceptsEncodings checks if the specified encoding is acceptable.

Callers 11

AcceptsJSONMethod · 0.65
AcceptsHTMLMethod · 0.65
AcceptsXMLMethod · 0.65
AcceptsEventStreamMethod · 0.65
FormatMethod · 0.65
AutoFormatMethod · 0.65
Test_Ctx_AcceptsFunction · 0.65
Benchmark_Ctx_AcceptsFunction · 0.65

Implementers 1

Calls

no outgoing calls

Tested by 5

Test_Ctx_AcceptsFunction · 0.52
Benchmark_Ctx_AcceptsFunction · 0.52