Skip to content

http

Module Step Summary
— http/http_request Execute a plain HTTP request.

http/http_request

Execute a plain HTTP request.

Useful for backend data upload/delete or any ad-hoc HTTP call during a test flow. The output is the response body itself, so a JSON object response is published across context variables one per top-level key — the same way every step publishes its return outputs.

Inputs

Parameter Type Required Default Also accepts Description
headers object no {} — Extra HTTP headers merged into the request.
timeout number no None — Request timeout in seconds; the test's default is used when omitted.
method string no 'GET' — HTTP method.
body any no None — Request body; dicts are sent as JSON.
url string yes — — Target URL.
query_params object no {} — Query string parameters appended to the URL.

Output — the value assertions and returns: read

A response body: parsed JSON when the server sent JSON, otherwise the raw text.

Type: any