body method
Set raw request body content.
For custom body content that doesn't fit the JSON, form, or text helpers. The content-type should be set separately if needed.
Example:
testApp.post('/api/upload')
.contentType('application/octet-stream')
.body(binaryData);
data Body content (will be converted to string).
Returns this request builder for method chaining.
Implementation
TestRequest body(dynamic data) {
_body = data;
return this;
}