From 1d9f1c6f079a9136fb301e8e8189817dec09d413 Mon Sep 17 00:00:00 2001 From: Johannes Tuchscherer Date: Thu, 6 Mar 2025 15:34:33 -0700 Subject: [PATCH 1/2] Adding docs about new comparison operators for the HTTP status code --- docs/source/analyze/http.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/source/analyze/http.md b/docs/source/analyze/http.md index 377cbad2..fab3edc4 100644 --- a/docs/source/analyze/http.md +++ b/docs/source/analyze/http.md @@ -10,6 +10,14 @@ The `http` analyzer is used to analyse information collected by the [HTTP Reques - `error`: Error occurred connecting to the URL. - `statusCode == 200`: Successfully connected to the URL. +For the comparison if the status code, the following operators are supported: + +`"==", "!=", ">=", "<="` + +Expressions can also be chained through the `&&` (and) and `||` (or) operator. For example, in order to check that the HTTP status code is part of the 2xx family, the following expression can be used: + +`statusCode => 200 && statusCode <= 299` + ### Examples of the collected JSON output to analyse Response received from the server will be stored in the `"response"` key of the resulting JSON file From 44cff7f7edd6bad7176e8eafa09e8be9e8566988 Mon Sep 17 00:00:00 2001 From: Paige Calvert Date: Thu, 6 Mar 2025 16:45:00 -0700 Subject: [PATCH 2/2] typo --- docs/source/analyze/http.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/analyze/http.md b/docs/source/analyze/http.md index fab3edc4..59f77ccd 100644 --- a/docs/source/analyze/http.md +++ b/docs/source/analyze/http.md @@ -10,7 +10,7 @@ The `http` analyzer is used to analyse information collected by the [HTTP Reques - `error`: Error occurred connecting to the URL. - `statusCode == 200`: Successfully connected to the URL. -For the comparison if the status code, the following operators are supported: +For the comparison of the status code, the following operators are supported: `"==", "!=", ">=", "<="`