postBody property

Object? get postBody

The post body as raw bytes if postIsBinary, otherwise the post String.

Use this when sending the body, or when passing post on to a copy of this Request, so that binary data is not utf8 encoded

Implementation

Object? get postBody =>
    postIsBinary ? Uint8List.fromList(post?.codeUnits ?? []) : post;