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

Method Is

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

Is returns the matching content type, if the incoming request's Content-Type HTTP header field matches the MIME type specified by the type parameter

(extension string)

Source from the content-addressed store, hash-verified

121 // Is returns the matching content type,
122 // if the incoming request's Content-Type HTTP header field matches the MIME type specified by the type parameter
123 Is(extension string) bool
124 // Locals makes it possible to pass any values under keys scoped to the request
125 // and therefore available to all following routes that match the request.
126 //

Callers 15

BodyMethod · 0.65
RangeMethod · 0.65
performOversizedRequestFunction · 0.65
TestMethod · 0.65
serverErrorHandlerMethod · 0.65
startServicesMethod · 0.65
Test_Ctx_IsFunction · 0.65
Benchmark_Ctx_IsFunction · 0.65
SaveMethod · 0.65
NewFunction · 0.65

Implementers 1

Calls

no outgoing calls

Tested by 8

performOversizedRequestFunction · 0.52
Test_Ctx_IsFunction · 0.52
Benchmark_Ctx_IsFunction · 0.52
contextRecordFromFunction · 0.52
contextRecordFromFunction · 0.52