new RequestHelper()

Description

Defines and registers custom handlebar helper - csv

Methods


register() → {void}

Description

Registers capture helper

  • Get the request object passed in from the context by calling template({request: req})
  • Get the from value passed in while calling {{capture from=}}, accepted values query, headers, path, body
  • For query and headers, key is required, else if not found a null/undefined value will be automatically returned.
  • For path additional input regex is mandatory, if not passed return error
  • For body additional inputs using and selector are mandatory, if not passed return error
Returns