@@ -147,7 +147,7 @@ Finally, Hurl is easy to <b>integrate in CI/CD</b>, with text, JUnit, TAP and HT
147
147
Hurl is a lightweight binary written in [ Rust] . Under the hood, Hurl HTTP engine is
148
148
powered by [ libcurl] , one of the most powerful and reliable file transfer libraries.
149
149
With its text file format, Hurl adds syntactic sugar to run and test HTTP requests,
150
- but it's still the [ curl] that we love: __ fast__ , __ efficient__ and __ HTTP /3 ready__ .
150
+ but it's still the [ curl] that we love: __ fast__ , __ efficient__ and __ IPv6 / HTTP /3 ready__ .
151
151
152
152
# Feedbacks
153
153
@@ -209,6 +209,7 @@ HTTP 200
209
209
* [ JSON Output] ( #json-output )
210
210
* [ Others] ( #others )
211
211
* [ HTTP Version] ( #http-version )
212
+ * [ IP Address] ( #ip-address )
212
213
* [ Polling and Retry] ( #polling-and-retry )
213
214
* [ Delaying Requests] ( #delaying-requests )
214
215
* [ Skipping Requests] ( #skipping-requests )
@@ -909,7 +910,7 @@ $ hurl --json *.hurl
909
910
910
911
### HTTP Version
911
912
912
- Testing HTTP version (HTTP/1.0, HTTP/1.1, HTTP/2 or HTTP/3):
913
+ Testing HTTP version (HTTP/1.0, HTTP/1.1, HTTP/2 or HTTP/3) can be done using implicit asserts :
913
914
914
915
``` hurl
915
916
GET https://foo.com
@@ -921,6 +922,37 @@ HTTP/2 200
921
922
922
923
[ Doc] ( https://hurl.dev/docs/asserting-response.html#version-status )
923
924
925
+ Or explicit:
926
+
927
+ ``` hurl
928
+ GET https://foo.com
929
+ HTTP 200
930
+ [Asserts]
931
+ version == "3"
932
+
933
+ GET https://bar.com
934
+ HTTP 200
935
+ [Asserts]
936
+ version == "2"
937
+ version toFloat > 1.1
938
+ ```
939
+
940
+ [ Doc] ( https://hurl.dev/docs/asserting-response.html#version-assert )
941
+
942
+ ### IP Address
943
+
944
+ Testing the IP address of the response, as a string. This string may be IPv6 address:
945
+
946
+ ``` hurl
947
+ GET https://foo.com
948
+ HTTP 200
949
+ [Asserts]
950
+ ip == " 2001:0db8:85a3:0000:0000:8a2e:0370:733"
951
+ ip startsWith "2001"
952
+ ip isIpv6
953
+ ```
954
+
955
+
924
956
### Polling and Retry
925
957
926
958
Retry request on any errors (asserts, captures, status code, runtime etc...):
@@ -1042,7 +1074,7 @@ POST https://example.org
1042
1074
X-Token: {{token}}
1043
1075
{
1044
1076
"name": "Alice",
1045
- "value: 100
1077
+ "value" : 100
1046
1078
}
1047
1079
HTTP 200
1048
1080
```
@@ -1063,7 +1095,7 @@ POST https://example.org
1063
1095
X-Token: {{token}}
1064
1096
{
1065
1097
"name": "Alice",
1066
- "value: 100
1098
+ "value" : 100
1067
1099
}
1068
1100
HTTP 200
1069
1101
```
@@ -1397,7 +1429,7 @@ Precompiled binary is available at [Hurl latest GitHub release]:
1397
1429
1398
1430
``` shell
1399
1431
$ INSTALL_DIR=/tmp
1400
- $ VERSION=6.0 .0
1432
+ $ VERSION=6.1 .0
1401
1433
$ curl --silent --location https://github.com/Orange-OpenSource/hurl/releases/download/$VERSION /hurl-$VERSION -x86_64-unknown-linux-gnu.tar.gz | tar xvz -C $INSTALL_DIR
1402
1434
$ export PATH=$INSTALL_DIR /hurl-$VERSION -x86_64-unknown-linux-gnu/bin:$PATH
1403
1435
```
@@ -1407,15 +1439,15 @@ $ export PATH=$INSTALL_DIR/hurl-$VERSION-x86_64-unknown-linux-gnu/bin:$PATH
1407
1439
For Debian / Ubuntu, Hurl can be installed using a binary .deb file provided in each Hurl release.
1408
1440
1409
1441
``` shell
1410
- $ VERSION=6.0 .0
1442
+ $ VERSION=6.1 .0
1411
1443
$ curl --location --remote-name https://github.com/Orange-OpenSource/hurl/releases/download/$VERSION /hurl_${VERSION} _amd64.deb
1412
1444
$ sudo apt update && sudo apt install ./hurl_${VERSION} _amd64.deb
1413
1445
```
1414
1446
1415
1447
For Ubuntu (bionic, focal, jammy, noble), Hurl can be installed from ` ppa:lepapareil/hurl `
1416
1448
1417
1449
``` shell
1418
- $ VERSION=6.0 .0
1450
+ $ VERSION=6.1 .0
1419
1451
$ sudo apt-add-repository -y ppa:lepapareil/hurl
1420
1452
$ sudo apt install hurl=" ${VERSION} " *
1421
1453
```
@@ -1600,9 +1632,9 @@ Please follow the [contrib on Windows section].
1600
1632
[ GitHub ] : https://github.com/Orange-OpenSource/hurl
1601
1633
[ libcurl ] : https://curl.se/libcurl/
1602
1634
[ star Hurl on GitHub ] : https://github.com/Orange-OpenSource/hurl/stargazers
1603
- [ HTML ] : /docs/standalone/hurl-6.0 .0.html
1604
- [ PDF ] : /docs/standalone/hurl-6.0 .0.pdf
1605
- [ Markdown ] : /docs/standalone/hurl-6.0 .0.md
1635
+ [ HTML ] : /docs/standalone/hurl-6.1 .0.html
1636
+ [ PDF ] : /docs/standalone/hurl-6.1 .0.pdf
1637
+ [ Markdown ] : /docs/standalone/hurl-6.1 .0.md
1606
1638
[ JSON body ] : https://hurl.dev/docs/request.html#json-body
1607
1639
[ XML body ] : https://hurl.dev/docs/request.html#xml-body
1608
1640
[ XML multiline string body ] : https://hurl.dev/docs/request.html#multiline-string-body
0 commit comments