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
Body responses can be encoded by server (see [`Content-Encoding` HTTP header]) but asserts in Hurl files are not
29
+
affected by this content compression. All body asserts (`body`, `bytes`, `sha256` etc...) work _after_ content decoding.
30
+
Finally, body text asserts (`body`, `jsonpath`, `xpath` etc...) are also decoded to strings based on [`Content-Type` header]
31
+
so these asserts can be written with usual strings.
32
+
28
33
## Implicit asserts
29
34
30
35
### Version - Status
@@ -245,7 +250,8 @@ In this case, the XPath query `string(//article/@data-visible)` returns a string
245
250
string.
246
251
247
252
The predicate function `==` can be used with string, numbers or booleans; `startWith` and `contains` can only
248
-
be used with strings and bytes, while `matches` only works on string. If a query returns a number, using a `matches` predicate will cause a runner error.
253
+
be used with strings and bytes, while `matches` only works on string. If a query returns a number, using a `matches`
Copy file name to clipboardExpand all lines: sites/hurl.dev/_docs/manual.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -170,7 +170,7 @@ will follow a redirection only for the second entry.
170
170
| <ahref="#cookie"id="cookie"><code>-b, --cookie <FILE></code></a> | Read cookies from FILE (using the Netscape cookie file format).<br><br>Combined with [`-c, --cookie-jar`](#cookie-jar), you can simulate a cookie storage between successive Hurl runs.<br><br>This is a cli-only option.<br> |
171
171
| <ahref="#cookie-jar"id="cookie-jar"><code>-c, --cookie-jar <FILE></code></a> | Write cookies to FILE after running the session (only for one session).<br>The file will be written using the Netscape cookie file format.<br><br>Combined with [`-b, --cookie`](#cookie), you can simulate a cookie storage between successive Hurl runs.<br><br>This is a cli-only option.<br> |
172
172
| <ahref="#curl"id="curl"><code>--curl <FILE></code></a> | Export each request to a list of curl commands.<br><br>This is a cli-only option.<br> |
173
-
| <ahref="#delay"id="delay"><code>--delay <MILLISECONDS></code></a> | Sets delay before each request (aka sleep). The delay is not applied to requests that have been retried because of [`--retry`](#retry). See [`--retry-interval`](#retry-interval) to space retried requests.<br><br>You can specify time units in the delay expression. Set Hurl to use a delay of 2 seconds with `--delay 2s` or set it to 500 milliseconds with `--delay 500ms`. No spaces allowed.<br> |
173
+
| <ahref="#delay"id="delay"><code>--delay <MILLISECONDS></code></a> | Sets delay before each request (aka sleep). The delay is not applied to requests that have been retried because of [`--retry`](#retry). See [`--retry-interval`](#retry-interval) to space retried requests.<br><br>You can specify time units in the delay expression. Set Hurl to use a delay of 2 seconds with `--delay 2s` or set it to 500 milliseconds with `--delay 500ms`. No spaces allowed.<br> |
174
174
| <ahref="#error-format"id="error-format"><code>--error-format <FORMAT></code></a> | Control the format of error message (short by default or long)<br><br>This is a cli-only option.<br> |
175
175
| <ahref="#file-root"id="file-root"><code>--file-root <DIR></code></a> | Set root directory to import files in Hurl. This is used for files in multipart form data, request body and response output.<br>When it is not explicitly defined, files are relative to the Hurl file's directory.<br><br>This is a cli-only option.<br> |
176
176
| <ahref="#from-entry"id="from-entry"><code>--from-entry <ENTRY_NUMBER></code></a> | Execute Hurl file from ENTRY_NUMBER (starting at 1).<br><br>This is a cli-only option.<br> |
0 commit comments