encodeBody property

bool encodeBody
getter/setter pair

Whether or not body should be encoded according to contentType.

Defaults to true. When true, body will automatically be encoded by selecting a codec from CodecRegistry by contentType. If false, body must be a List<int>.

Implementation

bool encodeBody = true;