bodyLimits property

List<DVRouteBodyLimit> get bodyLimits

Every route, in the order requests are dispatched to them, with the limit it declared or null for the server's.

All of them rather than only the limited ones: the native side matches first route first, as call does, so a route with no limit of its own keeps the server's limit for the requests it takes even when a later route with a larger limit would match them too.

Implementation

List<DVRouteBodyLimit> get bodyLimits => List<DVRouteBodyLimit>.unmodifiable(
    <DVRouteBodyLimit>[
      for (final _Route route in _routes)
        DVRouteBodyLimit(route.method, route.source, route.maxBodyBytes),
    ]);