exchange
Exchange a test request with the current server, expecting status as an HTTP return status; after executing the request to obtain the response, block is executed (if provided) to perform additional assertions on the response.
In this case, no response payload type is provided, and the request payload type is also generic. If you would like to decode the response and test against it, see other variants of this method.
Return
HTTP response from the server.
Parameters
HTTP request to submit to the current Elide server.
Expected HTTP status for the response.
Block of assertions to additionally perform.
See also
which allows a response body type.
Exchange a test request with the current server, expecting status as an HTTP return status; after executing the request to obtain the response, block is executed (if provided) to perform additional assertions on the response.
Return
HTTP response from the server.
Parameters
HTTP request to submit to the current Elide server.
Expected HTTP status for the response.
Type of the response payload.
Block of assertions to additionally perform.