MCPcopy Index your code
hub / github.com/dnote/dnote / getHTTPClient

Function getHTTPClient

pkg/cli/client/client.go:102–112  ·  view source on GitHub ↗
(ctx context.DnoteCtx, options *requestOptions)

Source from the content-addressed store, hash-verified

100}
101
102func getHTTPClient(ctx context.DnoteCtx, options *requestOptions) *http.Client {
103 if options != nil && options.HTTPClient != nil {
104 return options.HTTPClient
105 }
106
107 if ctx.HTTPClient != nil {
108 return ctx.HTTPClient
109 }
110
111 return &http.Client{}
112}
113
114func getExpectedContentType(options *requestOptions) string {
115 if options != nil && options.ExpectedContentType != nil {

Callers 1

doReqFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected