Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
70
func
(r *Response) SetHeader(key, val string) {
71
r.Header().Set(key, val)
72
}
73
74
func
(r *Response) SetContentType(contenttype string) {
75
r.SetHeader(HeaderContentType, contenttype)
Callers
5
SetContentType
Method · 0.95
prepareHttpContext
Function · 0.45
RegisterString
Method · 0.45
RegisterJSON
Method · 0.45
reset
Method · 0.45
Calls
2
Header
Method · 0.95
Set
Method · 0.65
Tested by
no test coverage detected