MCPcopy
hub / github.com/cli/cli / httpResponseWithHeader

Function httpResponseWithHeader

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

Source from the content-addressed store, hash-verified

272}
273
274func httpResponseWithHeader(status int, req *http.Request, body io.Reader, header http.Header) *http.Response {
275 return &http.Response{
276 StatusCode: status,
277 Request: req,
278 Body: io.NopCloser(body),
279 Header: header,
280 }
281}

Callers 4

JSONResponseFunction · 0.85
StatusJSONResponseFunction · 0.85
RESTPayloadFunction · 0.85
httpResponseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected