Skip to content

Commit 4d584dd

Browse files
committed
Clarify usage examples
1 parent 91fea4d commit 4d584dd

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/content/docs/ruleset-engine/rules-language/fields/http-request-body.mdx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Example value:
7676

7777
`{"username": ["admin"]}`
7878

79-
Example:
79+
Example usage:
8080

8181
`any(http.request.body.form["username"][*] == "admin")`
8282

@@ -100,7 +100,7 @@ Example value:
100100

101101
`["username"]`
102102

103-
Example:
103+
Example usage:
104104

105105
`any(http.request.body.form.names[*] == "username")`
106106

@@ -124,7 +124,7 @@ Example value:
124124

125125
`["admin"]`
126126

127-
Example:
127+
Example usage:
128128

129129
`any(http.request.body.form.values[*] == "admin")`
130130

@@ -140,7 +140,7 @@ Example value:
140140

141141
`"image/jpeg"`
142142

143-
Example:
143+
Example usage:
144144

145145
`http.request.body.mime in {"image/bmp" "image/gif" "image/jpeg" "image/png" "image/tiff"}`
146146

@@ -156,7 +156,7 @@ Example value:
156156

157157
`{"username": ["alice_doe"], "role": ["editor"], "picture": [<binary_content_of_file>]}`
158158

159-
Example:
159+
Example usage:
160160

161161
`any(http.request.body.multipart["role"][*] == "admin")`
162162

@@ -170,7 +170,7 @@ Example value:
170170

171171
`[["username"], ["picture"]]`
172172

173-
Example:
173+
Example usage:
174174

175175
`any(http.request.body.multipart.names[*][0] == "picture")`
176176

@@ -184,7 +184,7 @@ Example value:
184184

185185
`["alice_doe", <binary_content_of_file>]`
186186

187-
Example:
187+
Example usage:
188188

189189
`any(http.request.body.multipart.values[*] == "alice_doe")`
190190

@@ -198,7 +198,7 @@ Example value:
198198

199199
`[["text/plain"], ["image/jpeg"]]`
200200

201-
Example:
201+
Example usage:
202202

203203
`any(http.request.body.multipart.content_types[*][0] == "application/octet-stream")`
204204

@@ -212,7 +212,7 @@ Example value:
212212

213213
`[["form-data; name=\"username\""], ["form-data; name=\"picture\""]]`
214214

215-
Example:
215+
Example usage:
216216

217217
`any(http.request.body.multipart.content_dispositions[*][0] in {"form-data; name=\"username\"" "form-data; name=\"picture\""})`
218218

@@ -226,7 +226,7 @@ Example value:
226226

227227
`[["quoted-printable"], ["base64"]]`
228228

229-
Example:
229+
Example usage:
230230

231231
`any(http.request.body.multipart.content_transfer_encodings[*][0] == "binary")`
232232

@@ -240,6 +240,6 @@ Example value:
240240

241241
`[["file1.txt"], ["photo.jpg"]]`
242242

243-
Example:
243+
Example usage:
244244

245245
`any(http.request.body.multipart.filenames[*][0] in {"token.txt" "password.txt"})`

0 commit comments

Comments
 (0)