alexandrehtrb / Pororoca

An HTTP inspection tool with support for HTTP/2 and HTTP/3. Alternative to Postman.

Home Page:https://pororoca.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Predefined variables

alexandrehtrb opened this issue · comments

https://learning.postman.com/docs/writing-scripts/script-references/variables-list/

Examples:

  • {{$guid}}: 611c2e81-2ccb-42d8-9ddc-2d0bfa65c1b4
  • {{$now}}, {{$isoTimestamp}}: 2020-06-09T21:10:36.177Z (no time zone specified; GMT +0h)
  • {{$today}}: 2020-06-09
  • {{$randomInt}}
  • {{$randomFullName}}

Files to be changed: IPororocaVariableResolver (and unit tests) + JSONC_pororoca.tmLanguage.json (for variable highlighting, pororocavar regex)

Solved on release 3.4.0

If you have ideas for more predef variables, please comment here or open a PR (code in file PororocaPredefinedVariableEvaluator.cs)