Update docs.

This commit is contained in:
Jean-Christophe Amiel 2024-08-20 17:30:49 +02:00
parent 48fcce6090
commit f68fa782cb
No known key found for this signature in database
GPG Key ID: 07FF11CFD55356CC
7 changed files with 18 additions and 4 deletions

View File

@ -1082,6 +1082,8 @@ $ echo GET http://httpbin.org/get | hurl
}
```
Hurl can take files as input, or directories. In the latter case, Hurl will search files with `.hurl` extension recursively.
Output goes to stdout by default. To have output go to a file, use the [`-o, --output`](#output) option:
```shell

View File

@ -39,6 +39,8 @@ $ echo GET http://httpbin.org/get | hurl
}
```
Hurl can take files as input, or directories. In the latter case, Hurl will search files with `.hurl` extension recursively.
Output goes to stdout by default. To have output go to a file, use the [`-o, --output`](#output) option:
```shell

View File

@ -36,6 +36,8 @@ If no input files are specified, input is read from stdin.
"url": "http://httpbin.org/get"
}
Hurl can take files as input, or directories. In the latter case, Hurl will search files with `.hurl` extension recursively.
Output goes to stdout by default. To have output go to a file, use the \fI-o, --output\fP option:
$ hurl -o output input.hurl

View File

@ -37,6 +37,8 @@ $ echo GET http://httpbin.org/get | hurl
}
```
Hurl can take files as input, or directories. In the latter case, Hurl will search files with `.hurl` extension recursively.
Output goes to stdout by default. To have output go to a file, use the [`-o, --output`](#output) option:
```shell

View File

@ -640,7 +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
delay: 3s # delay for this request
http3: true # use HTTP/3 protocol version
insecure: true # allow insecure SSL connections and transfers
ipv6: true # use IPv6 addresses
@ -648,6 +648,8 @@ 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
retry: 10 # number of retry if HTTP/asserts errors
retry-interval: 500ms # interval between retry
skip: false # skip this request
unix-socket: sock # use Unix socket for transfer
user: bob:secret # use basic authentication

View File

@ -77,8 +77,7 @@ xpath "//li" count == 18
## Capture and Assertion
With the response section, one can optionally [capture value from headers, body],
or [add assert on status code, body or headers].
With the response section, one can optionally [capture value from headers, body], or [add assert on status code, body or headers].
### Body compression
@ -91,7 +90,9 @@ header by example) and add assert and captures on the decoded body as if there w
## Timings
HTTP response timings are exposed through Hurl structured output (see [`--json`]) and HTML report (see [`--report-html`]).
HTTP response timings are exposed through Hurl structured output (see [`--json`]), HTML report (see [`--report-html`])
and JSON report (see [`--report-json`]).
On each response, libcurl response timings are available:
- __time_namelookup__: the time it took from the start until the name resolving was completed. You can use
@ -127,4 +128,5 @@ All timings are in microsecond.
[`Accept-Encoding`]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Encoding
[`--json`]: /docs/manual.md#json
[`--report-html`]: /docs/manual.md#report-html
[`--report-json`]: /docs/manual.md#report-json
[`--resolve`]: /docs/manual.md#resolve

View File

@ -1074,6 +1074,8 @@ $ echo GET http://httpbin.org/get | hurl
}
```
Hurl can take files as input, or directories. In the latter case, Hurl will search files with `.hurl` extension recursively.
Output goes to stdout by default. To have output go to a file, use the [`-o, --output`](#output) option:
```shell