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

Function getExpectedContentType

pkg/cli/client/client.go:114–120  ·  view source on GitHub ↗
(options *requestOptions)

Source from the content-addressed store, hash-verified

112}
113
114func getExpectedContentType(options *requestOptions) string {
115 if options != nil && options.ExpectedContentType != nil {
116 return *options.ExpectedContentType
117 }
118
119 return contentTypeApplicationJSON
120}
121
122func getReq(ctx context.DnoteCtx, path, method, body string) (*http.Request, error) {
123 endpoint := fmt.Sprintf("%s%s", ctx.APIEndpoint, path)

Callers 1

checkContentTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected