MCPcopy Create free account
hub / github.com/devfeel/dotweb / SetHeader

Method SetHeader

response.go:70–72  ·  view source on GitHub ↗
(key, val string)

Source from the content-addressed store, hash-verified

68}
69
70func (r *Response) SetHeader(key, val string) {
71 r.Header().Set(key, val)
72}
73
74func (r *Response) SetContentType(contenttype string) {
75 r.SetHeader(HeaderContentType, contenttype)

Callers 5

SetContentTypeMethod · 0.95
prepareHttpContextFunction · 0.45
RegisterStringMethod · 0.45
RegisterJSONMethod · 0.45
resetMethod · 0.45

Calls 2

HeaderMethod · 0.95
SetMethod · 0.65

Tested by

no test coverage detected