MCPcopy
hub / github.com/cli/cli / BinaryResponse

Function BinaryResponse

pkg/httpmock/stub.go:130–134  ·  view source on GitHub ↗
(body []byte)

Source from the content-addressed store, hash-verified

128}
129
130func BinaryResponse(body []byte) Responder {
131 return func(req *http.Request) (*http.Response, error) {
132 return httpResponse(200, req, bytes.NewBuffer(body)), nil
133 }
134}
135
136func WithHost(matcher Matcher, host string) Matcher {
137 return func(req *http.Request) bool {

Callers 2

TestDownloadCopilotFunction · 0.92
TestViewRunFunction · 0.92

Calls 1

httpResponseFunction · 0.85

Tested by 2

TestDownloadCopilotFunction · 0.74
TestViewRunFunction · 0.74