MCPcopy
hub / github.com/caddyserver/caddy / Set

Method Set

modules/caddyhttp/templates/tplcontext.go:565–568  ·  view source on GitHub ↗

Set sets a header field value, overwriting any other values for that field. It returns an empty string.

(field, val string)

Source from the content-addressed store, hash-verified

563// other values for that field. It returns an
564// empty string.
565func (h WrappedHeader) Set(field, val string) string {
566 h.Header.Set(field, val)
567 return ""
568}
569
570// Del deletes a header field. It returns an empty string.
571func (h WrappedHeader) Del(field string) string {

Callers 15

newRequestWithHeaderFunction · 0.45
ServeHTTPMethod · 0.45
TestPreferOrderFunction · 0.45
ServeHTTPMethod · 0.45
WriteMethod · 0.45
initMethod · 0.45
ServeHTTPMethod · 0.45
funcHTTPIncludeMethod · 0.45
initializePushHeadersMethod · 0.45
TestResponseRetryHeaderFunction · 0.45

Calls

no outgoing calls