requestPath function

String requestPath(
  1. HttpRequest req
)

The path of req, with no query. The same as req.uri.path, but the native server gives a plain path with no Uri.

Implementation

String requestPath(HttpRequest req) =>
    req is NativeRequest ? req.path : req.uri.path;