convertRequest method

  1. @override
Request convertRequest(
  1. Request request
)
inherited

Converts the received Request to a Request which has a body with the HTTP representation of the original body.

Implementation

@override
Request convertRequest(Request request) {
  final req = applyHeader(
    request,
    contentTypeKey,
    jsonHeaders,
    override: false,
  );

  return encodeJson(req);
}