parseXForms method

Future<Map?> parseXForms([
  1. bool ignoreFile = true
])

example a=b&c=d

Implementation

Future<Map?> parseXForms([bool ignoreFile = true]) async {
  if (!isXForm) return null;
  try {
    var input = await utf8.decoder.bind(req).join();
    var _jsons = {};
    input.formUrlDeCode().forEach((key, value) {
      _jsons[key] = value;
    });
    jsons = _jsons.mergeInto(jsons);
  } catch (e) {
    Dartive.logger('parseXForms $e', 'E');
  }
  return jsons;
}