heldBody method

  1. @override
Uint8List? heldBody(
  1. HttpRequest req
)
override

the whole body when the server holds it already, else null: it streams

Implementation

@override
Uint8List? heldBody(HttpRequest req) {
  if (req is! NativeRequest) return null;
  return req.isStreamed ? null : req.body;
}