MCPcopy Index your code
hub / github.com/cloudflare/cloudflared / GetCliConfiguration

Method GetCliConfiguration

diagnostic/client.go:165–172  ·  view source on GitHub ↗
(ctx context.Context, writer io.Writer)

Source from the content-addressed store, hash-verified

163}
164
165func (client *httpClient) GetCliConfiguration(ctx context.Context, writer io.Writer) error {
166 response, err := client.GET(ctx, cliConfigurationEndpoint)
167 if err != nil {
168 return err
169 }
170
171 return copyJSONToWriter(response, writer)
172}
173
174func copyToWriter(response *http.Response, writer io.Writer) error {
175 defer response.Body.Close()

Callers

nothing calls this directly

Calls 2

GETMethod · 0.95
copyJSONToWriterFunction · 0.85

Tested by

no test coverage detected