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

Method TrySet

binding/header.go:35–37  ·  view source on GitHub ↗
(value reflect.Value, field reflect.StructField, tagValue string, opt setOptions)

Source from the content-addressed store, hash-verified

33var _ setter = headerSource(nil)
34
35func (hs headerSource) TrySet(value reflect.Value, field reflect.StructField, tagValue string, opt setOptions) (bool, error) {
36 return setByForm(value, field, hs, textproto.CanonicalMIMEHeaderKey(tagValue), opt)
37}

Callers

nothing calls this directly

Calls 1

setByFormFunction · 0.85

Tested by

no test coverage detected