MCPcopy
hub / github.com/danielgtaylor/huma / SetHeader

Method SetHeader

api.go:120–120  ·  view source on GitHub ↗

SetHeader sets the given header to the given value, overwriting any existing value. Use `AppendHeader` to append a value instead.

(name, value string)

Source from the content-addressed store, hash-verified

118 // SetHeader sets the given header to the given value, overwriting any
119 // existing value. Use `AppendHeader` to append a value instead.
120 SetHeader(name, value string)
121
122 // AppendHeader appends the given value to the given header.
123 AppendHeader(name, value string)

Callers 6

NewAPIFunction · 0.65
registerDocsRouteMethod · 0.65
ExampleAdapter_handleFunction · 0.65
writeResponseFunction · 0.65
RegisterFunction · 0.65
PatchResourceFunction · 0.65

Implementers 11

fiberV2Wrapperadapters/humafiber/humafiber_v2.go
fiberWrapperadapters/humafiber/humafiber.go
bunContextadapters/humabunrouter/humabunrouter.g
bunCompatContextadapters/humabunrouter/humabunrouter.g
goContextadapters/humaflow/humaflow.go
gmuxContextadapters/humamux/humamux.go
ginCtxadapters/humagin/humagin.go
echoCtxadapters/humaecho/humaecho.go
httprouterContextadapters/humahttprouter/humahttprouter
goContextadapters/humago/humago.go
chiContextadapters/humachi/humachi.go

Calls

no outgoing calls

Tested by 1

ExampleAdapter_handleFunction · 0.52