Update docs.
This commit is contained in:
parent
48fcce6090
commit
f68fa782cb
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue