Skip to content

Commit

Permalink
Add delay and skip option in samples.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcamiel committed Jan 15, 2024
1 parent 1e5aa19 commit 0b5c164
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/request.md
Original file line number Diff line number Diff line change
Expand Up @@ -640,13 +640,15 @@ 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
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
Expand Down
34 changes: 34 additions & 0 deletions docs/samples.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0b5c164

Please sign in to comment.