You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Easily create/update/delete environments and environment variables in setting file
32
40
- File variables can reference both custom and system variables
33
41
- Support environment switch
@@ -537,6 +545,7 @@ For example: Define a shell environment variable in `.bashrc` or similar on wind
537
545
`%`: Optional. If specified, treats envVarName as an extension setting environment variable, and uses the value of that for the lookup.
538
546
539
547
548
+
*`{{$dotenv variableName}}`: Returns the environment value stored in the [`.env`](https://github.com/motdotla/dotenv) file which exists in the same directory of your `.http` file.
540
549
*`{{$randomInt min max}}`: Returns a random integer between min (included) and max (excluded)
541
550
*`{{$timestamp [offset option]}}`: Add UTC timestamp of now. You can even specify any date time based on current time in the format `{{$timestamp number option}}`, e.g., to represent 3 hours ago, simply `{{$timestamp -3 h}}`; to represent the day after tomorrow, simply `{{$timestamp 2 d}}`.
542
551
*`{{$datetime rfc1123|iso8601|"custom format"|'custom format' [offset option]}}`: Add a datetime string in either _ISO8601_, _RFC1123_ or a custom display format. You can even specify a date time relative to the current date similar to `timestamp` like: `{{$datetime iso8601 1 y}}` to represent a year later in _ISO8601_ format. If specifying a custom format, wrap it in single or double quotes like: `{{$datetime "DD-MM-YYYY" 1 y}}`. The date is formatted using moment.js, read [here](https://momentjs.com/docs/#/parsing/string-format/) for information on format strings.
ResponseBodyNotExist="Response body of given request doesn't exist",
30
30
IncorrectDateTimeVariableFormat='Datetime system variable should follow format "{{$datetime rfc1123|iso8601 [integer y|Q|M|w|d|h|m|s|ms]}}"',
31
31
IncorrectLocalDateTimeVariableFormat='Local datetime system variable should follow format "{{$localDatetime rfc1123|iso8601 [integer y|Q|M|w|d|h|m|s|ms]}}"',
32
+
DotenvFileNotFound='.env file is not found in the directory where current .http file exists',
33
+
DotenvVariableNotFound='Given variable name is not found in .env file',
32
34
IncorrectHeaderName='No value is resolved for given header name',
33
35
IncorrectJSONPath='No value is resolved for given JSONPath',
34
36
IncorrectRandomIntegerVariableFormat='RandomInt system variable should follow format "{{$randomInt minInteger maxInteger}}"',
35
37
IncorrectProcessEnvVariableFormat='ProcessEnv system variable should follow format "{{$processEnv envVarName}}"',
36
38
IncorrectTimestampVariableFormat='Timestamp system variable should follow format "{{$timestamp [integer y|Q|M|w|d|h|m|s|ms]}}"',
39
+
IncorrectDotenvVariableFormat='Dotenv variable should follow format "{{$dotenv variableName}}"',
37
40
IncorrectXPath='No value is resolved for given XPath',
38
-
UnsupportedBodyContentType='Only JSON response/request body is supported to query the result',
41
+
UnsupportedBodyContentType='Only JSON and XML response/request body is supported to query the result',
0 commit comments