MCPcopy Create free account
hub / github.com/algolia/cli / httpResponse

Function httpResponse

pkg/httpmock/stub.go:60–67  ·  view source on GitHub ↗
(status int, req *http.Request, body io.Reader)

Source from the content-addressed store, hash-verified

58}
59
60func httpResponse(status int, req *http.Request, body io.Reader) *http.Response {
61 return &http.Response{
62 StatusCode: status,
63 Request: req,
64 Body: io.NopCloser(body),
65 Header: http.Header{},
66 }
67}

Callers 4

StringResponseFunction · 0.85
JSONResponseFunction · 0.85
ErrorResponseFunction · 0.85
ErrorResponseWithBodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected