routeNeedsResolvePayload function

bool routeNeedsResolvePayload(
  1. Iterable<ServerParam> params
)

Whether the route handler must materialize the payload before invoking the controller. Byte-stream body params read directly from Payload.read.

Implementation

bool routeNeedsResolvePayload(Iterable<ServerParam> params) {
  return params.any(
    (param) => param.annotations.body != null && !isByteStreamBodyParam(param),
  );
}