Skip to content

req.parsedParameters getter + App.launchEndpoint for all

Pavlo Mashliakovskiy requested to merge feature/reqParsedParametersGetter into master
  • THTTPRequest extended by parsedParameters getter. Result is cached, so second call is faster than first

    // for parameters 'foo=bar&baz=qux&baz=quux&corge' return
    req.parsedParameters // { foo: 'bar', baz: ['qux', 'quux'], corge: '' }

    We recommend using this getter instead of querystring.parse(req.parameters) to prevent multiple call to parameter parsing from different methods (require UB server >= 5.19.0)

  • BREAKING JS endpoints, added by App.registerEndpoint and native endpoints, added by a server (stat, auth, ubql, logout and metrics) now executed using App.launchEndpoint JS implementation.

Merge request reports

Loading