Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/code-scan/Goal
/ SetUserAgent
Method
SetUserAgent
Ghttp/header.go:24–26 ·
view source on GitHub ↗
(agent string)
Source
from the content-addressed store, hash-verified
22
return
h
23
}
24
func
(h *Http) SetUserAgent(agent string) {
25
h.SetHeader(
"User-Agent"
, agent)
26
}
27
28
//设置请求content type
29
func
(h *Http) SetContentType(s string) *Http {
Callers
nothing calls this directly
Calls
1
SetHeader
Method · 0.95
Tested by
no test coverage detected