Add delay and skip option in samples.

This commit is contained in:
jcamiel 2024-01-15 16:55:23 +01:00
parent 1e5aa19ba1
commit 0b5c164612
No known key found for this signature in database
GPG Key ID: 07FF11CFD55356CC
2 changed files with 36 additions and 0 deletions

View File

@ -640,6 +640,7 @@ GET https://example.org
aws-sigv4: aws:amz:sts # generate AWS SigV4 Authorization header
cacert: /etc/cert.pem # custom certificate file
compressed: true # request a compressed response
delay: 3000 # delay in ms for this request
http3: true # use HTTP/3 protocol version
insecure: true # allow insecure SSL connections and transfers
ipv6: true # use IPv6 addresses
@ -647,6 +648,7 @@ location: true # follow redirection for this request
max-redirs: 10 # maximum number of redirections
output: out.html # dump the response to this file
path-as-is: true # do not handle sequences of /../ or /./ in URL path
skip: false # skip this request
unix-socket: sock # use Unix socket for transfer
variable: country=Italy # define variable country
variable: planet=Earth # define variable planet

View File

@ -434,6 +434,40 @@ jsonpath "$.state" == "COMPLETED"
[Doc](/docs/entry.md#retry)
### Delaying Requests
Add delay for every request, or a particular requests:
```hurl
# Delaying this request by 5s
GET https://example.org/turtle
[Options]
delay: 5000
HTTP 200
# No delay!
GET https://example.org/turtle
HTTP 200
```
[Doc](/docs/manual.md#delay)
### Skipping Requests
```hurl
# a, b, d are runner, c is skipped
GET https://example.org/a
GET https://example.org/b
[Options]
skip: true
GET https://example.org/c
GET https://example.org/d
```
[Doc](/docs/manual.md#skip)
### Testing Endpoint Performance