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

Method Add

modules/caddyhttp/templates/tplcontext.go:557–560  ·  view source on GitHub ↗

Add adds a header field value, appending val to existing values for that field. It returns an empty string.

(field, val string)

Source from the content-addressed store, hash-verified

555// existing values for that field. It returns an
556// empty string.
557func (h WrappedHeader) Add(field, val string) string {
558 h.Header.Add(field, val)
559 return ""
560}
561
562// Set sets a header field value, overwriting any
563// other values for that field. It returns an

Callers 15

WriteHeaderMethod · 0.45
initMethod · 0.45
addLogFieldMethod · 0.45
TestHTTPIncludeFunction · 0.45
TestCookieFunction · 0.45
handleUpgradeResponseMethod · 0.45
maskBytesFunction · 0.45
ServeHTTPMethod · 0.45
ReadMethod · 0.45

Calls

no outgoing calls