MCPcopy
hub / github.com/cli/cli / httpResponse

Function httpResponse

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

Source from the content-addressed store, hash-verified

268}
269
270func httpResponse(status int, req *http.Request, body io.Reader) *http.Response {
271 return httpResponseWithHeader(status, req, body, http.Header{})
272}
273
274func httpResponseWithHeader(status int, req *http.Request, body io.Reader, header http.Header) *http.Response {
275 return &http.Response{

Callers 6

StringResponseFunction · 0.85
BinaryResponseFunction · 0.85
StatusStringResponseFunction · 0.85
FileResponseFunction · 0.85
GraphQLMutationFunction · 0.85
GraphQLQueryFunction · 0.85

Calls 1

httpResponseWithHeaderFunction · 0.85

Tested by

no test coverage detected