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

Function SetBasicAuth

request_wrapper.go:131–133  ·  view source on GitHub ↗

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

(username, password string)

Source from the content-addressed store, hash-verified

129// SetBasicAuth is a global wrapper methods which delegated
130// to the default client, create a request and SetBasicAuth for request.
131func SetBasicAuth(username, password string) *Request {
132 return defaultClient.R().SetBasicAuth(username, password)
133}
134
135// SetDigestAuth is a global wrapper methods which delegated
136// to the default client, create a request and SetDigestAuth for request.

Callers

nothing calls this directly

Calls 2

SetBasicAuthMethod · 0.80
RMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…