MCPcopy Create free account
hub / github.com/aws/aws-lambda-go / extractResponseBody

Function extractResponseBody

cfn/wrap_test.go:209–218  ·  view source on GitHub ↗
(t *testing.T, req *http.Request)

Source from the content-addressed store, hash-verified

207}
208
209func extractResponseBody(t *testing.T, req *http.Request) Response {
210 assert.NotContains(t, req.Header, "Content-Type")
211
212 body, err := ioutil.ReadAll(req.Body)
213 assert.NoError(t, err)
214 var response Response
215 err = json.Unmarshal(body, &response)
216 assert.NoError(t, err)
217 return response
218}

Callers 4

TestPanicSendsFailureFunction · 0.85
TestWrappedErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…