Validates that a TestResponse has the specified HTTP response body.
This matcher only validates the HTTP response body. See hasResponse for more details. Usage:
var response = await client.request("/foo").get();
expect(response, hasBody("string body"));
Source
Matcher hasBody(dynamic matchSpec) => new HTTPResponseMatcher(null, null, new HTTPBodyMatcher(matchSpec));