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

Struct DefaultReq

req.go:46–48  ·  view source on GitHub ↗

DefaultReq is the default implementation of Req used by DefaultCtx. go:generate ifacemaker --file req.go --struct DefaultReq --iface Req --pkg fiber --output req_interface_gen.go --not-exported true --iface-comment "Req is an interface for request-related Ctx methods."

Source from the content-addressed store, hash-verified

44//
45//go:generate ifacemaker --file req.go --struct DefaultReq --iface Req --pkg fiber --output req_interface_gen.go --not-exported true --iface-comment "Req is an interface for request-related Ctx methods."
46type DefaultReq struct {
47 c *DefaultCtx
48}
49
50// Accepts checks if the specified extensions or content types are acceptable.
51func (r *DefaultReq) Accepts(offers ...string) string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected