Skip to content

Commit 790f0d4

Browse files
authored
Update docs for 6.1.0. (#101)
1 parent 2764c84 commit 790f0d4

27 files changed

Lines changed: 6487 additions & 236 deletions

sites/build_home_samples.py

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def make_home_samples():
6262
6363
# Or with a query param section:
6464
GET https://example.org/news
65-
[QueryStringParams]
65+
[Query]
6666
order: newest
6767
search: something to search
6868
count: 100
@@ -86,7 +86,7 @@ def make_home_samples():
8686
name="Form",
8787
src="""\
8888
POST https://example.org/contact
89-
[FormParams]
89+
[Form]
9090
default: false
9191
token: {{token}}
9292
email: john.doe@rookie.org
@@ -97,7 +97,7 @@ def make_home_samples():
9797
name="Multipart",
9898
src="""\
9999
POST https://example.org/upload
100-
[MultipartFormData]
100+
[Multipart]
101101
field1: value1
102102
field2: file,example.txt;
103103
# One can specify the file content type:
@@ -322,7 +322,7 @@ def make_home_samples():
322322
Sample(
323323
name="SSL Certificate",
324324
src="""\
325-
# Check attributes of the SSL certificate
325+
# Check attributes of the SSL certificate
326326
GET https://example.org
327327
HTTP 200
328328
[Asserts]
@@ -343,6 +343,23 @@ def make_home_samples():
343343
HTTP 200
344344
[Asserts]
345345
jsonpath "$.state" == "COMPLETED"
346+
""",
347+
),
348+
Sample(
349+
name="IP Address",
350+
src="""\
351+
GET https://example.org
352+
HTTP 200
353+
[Asserts]
354+
ip == "2001:0db8:85a3:0000:0000:8a2e:0370:7334"
355+
ip startsWith "2001"
356+
357+
GET https://example.org
358+
[Options]
359+
ipv4: true
360+
HTTP 200
361+
[Asserts]
362+
ip not isIpv6
346363
""",
347364
),
348365
]

sites/hurl.dev/_data/docs.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,14 @@
8989
- title: Others
9090
items:
9191
- title: HTTP Version
92+
- title: IP Address
9293
- title: Polling and Retry
9394
- title: Delaying Requests
9495
- title: Skipping Requests
9596
- title: Testing Endpoint Performance
9697
- title: Using SOAP APIs
9798
- title: Capturing and Using a CSRF Token
99+
- title: Redacting Secrets
98100
- title: Checking Byte Order Mark (BOM) in Response Body
99101
- title: AWS Signature Version 4 Requests
100102
- title: Using curl Options
@@ -195,17 +197,22 @@
195197
items:
196198
- title: Query
197199
- title: Status capture
200+
- title: Version capture
198201
- title: Header capture
199-
- title: URL capture
200202
- title: Cookie capture
201203
- title: Body capture
202204
- title: Bytes capture
203205
- title: XPath capture
204206
- title: JSONPath capture
205207
- title: Regex capture
208+
- title: SHA-256 capture
209+
- title: MD5 capture
210+
- title: URL capture
211+
- title: IP address capture
206212
- title: Variable capture
207213
- title: Duration capture
208214
- title: SSL certificate capture
215+
- title: Redacting Secrets
209216
- title: Asserting Response
210217
path: /docs/asserting-response.html
211218
items:
@@ -218,8 +225,8 @@
218225
items:
219226
- title: Predicates
220227
- title: Status assert
228+
- title: Version assert
221229
- title: Header assert
222-
- title: URL assert
223230
- title: Cookie assert
224231
- title: Body assert
225232
- title: Bytes assert
@@ -228,6 +235,8 @@
228235
- title: Regex assert
229236
- title: SHA-256 assert
230237
- title: MD5 assert
238+
- title: URL assert
239+
- title: IP address assert
231240
- title: Variable assert
232241
- title: Duration assert
233242
- title: SSL certificate assert
@@ -246,6 +255,8 @@
246255
- title: Example
247256
- title: Description
248257
items:
258+
- title: base64Decode
259+
- title: base64Encode
249260
- title: count
250261
- title: daysAfterNow
251262
- title: daysBeforeNow
@@ -259,7 +270,9 @@
259270
- title: replace
260271
- title: split
261272
- title: toDate
273+
- title: toFloat
262274
- title: toInt
275+
- title: toString
263276
- title: urlDecode
264277
- title: urlEncode
265278
- title: xpath

0 commit comments

Comments
 (0)