MCPcopy
hub / github.com/gin-gonic/gin / BindHeader

Method BindHeader

context.go:793–795  ·  view source on GitHub ↗

BindHeader is a shortcut for c.MustBindWith(obj, binding.Header).

(obj any)

Source from the content-addressed store, hash-verified

791
792// BindHeader is a shortcut for c.MustBindWith(obj, binding.Header).
793func (c *Context) BindHeader(obj any) error {
794 return c.MustBindWith(obj, binding.Header)
795}
796
797// BindUri binds the passed struct pointer using binding.Uri.
798// It will abort the request with HTTP 400 if any error occurs.

Callers 1

TestContextBindHeaderFunction · 0.80

Calls 1

MustBindWithMethod · 0.95

Tested by 1

TestContextBindHeaderFunction · 0.64