app/Http/Middleware/BodyParser.js
/**
   * @description this method gets called by adonis
   * @method handle
   * middleware layer.
   * @param  {Object}   request
   * @param  {Object}   response
   * @param  {Function} next
   * @return {void}
   * @public
   */
@description this method gets called by adonis
@method handle
middleware layer.
@description this method gets called by adonis @method handle middleware layer .
* handle (request, response, next) {
    const form = new formidable.IncomingForm()
    try {
      const formFields = yield this.parse(form, request)
      request.request._body = formFields.fields || null
      request._files = formFields.files || null
      request._raw = formFields.raw || null
      yield next
    } catch (e) {
      throw e
    }
  }
* handle ( request , response , next ) { const form = new formidable . IncomingForm ( ) try { const formFields = yield this . parse ( form , request ) request . request . _body = formFields . fields || null request . _files = formFields . files || null request . _raw = formFields . raw || null yield next } catch ( e ) { throw e } }
@description this method gets called by adonis
 @method handle
 middleware layer.
@description this method gets called by adonis @method handle middleware layer .
/**
     * parsing incoming request form
     */ /**
       * make sure to set request body, so that
       * adonnis request can use it
       * @type {Object}
       */ /**
       * make sure to set uploaded files , so that
       * adonis request can return uploaded files.
       * @type {Object}
       */ /**
       * Setting up request raw body if available
       * @type {String}
       */