MCPcopy 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}
24func (h *Http) SetUserAgent(agent string) {
25 h.SetHeader("User-Agent", agent)
26}
27
28//设置请求content type
29func (h *Http) SetContentType(s string) *Http {

Callers

nothing calls this directly

Calls 1

SetHeaderMethod · 0.95

Tested by

no test coverage detected