func()

in v3/internal/awstesting/unit.go [45:56]


func (m *MockHttpClient) Do(req *http.Request) (*http.Response, error) {
	m.CapturedReq = req
	if req.Body != nil {
		body, err := io.ReadAll(req.Body)
		if err != nil {
			return nil, err
		}
		m.CapturedBody = body
	}

	return m.Response, m.ResponseError
}