MCPcopy Create free account
hub / github.com/imroc/req / SetHeader

Function SetHeader

request_wrapper.go:149–151  ·  view source on GitHub ↗

SetHeader is a global wrapper methods which delegated to the default client, create a request and SetHeader for request.

(key, value string)

Source from the content-addressed store, hash-verified

147// SetHeader is a global wrapper methods which delegated
148// to the default client, create a request and SetHeader for request.
149func SetHeader(key, value string) *Request {
150 return defaultClient.R().SetHeader(key, value)
151}
152
153// SetHeaderOrder is a global wrapper methods which delegated
154// to the default client, create a request and SetHeaderOrder for request.

Callers

nothing calls this directly

Calls 2

SetHeaderMethod · 0.80
RMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…