autoParseQuery function

RequestHandler autoParseQuery (
  1. List<String> fields
)

Auto-parses numbers in req.queryParameters.

Implementation

RequestHandler autoParseQuery(List<String> fields) {
  return (RequestContext req, res) async {
    req.queryParameters.addAll(autoParse(req.queryParameters, fields));
    return true;
  };
}