Skip to content

Adding docs about new comparison operators for the HTTP status code #621

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/source/analyze/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 of 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
Expand Down