MCPcopy Create free account
hub / github.com/Scalingo/cli / Do

Function Do

httpclient/client.go:18–25  ·  view source on GitHub ↗
(req *http.Request)

Source from the content-addressed store, hash-verified

16)
17
18func Do(req *http.Request) (*http.Response, error) {
19 if req.Header.Get("Content-Type") == "" {
20 req.Header.Set("Content-Type", "application/json")
21 }
22 req.Header.Set("Accept", "application/json")
23 req.Header.Add("User-Agent", "Scalingo CLI v"+config.Version)
24 return client.Do(req)
25}

Callers 2

uploadFileMethod · 0.92
updateTtySizeFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected