HTTP Client reference
client object holds the HTTP Client session metadata, such as the list of global variables. The HTTP Client session is started when AppCode starts, and ends when AppCode is closed. Values are not preserved between AppCode restarts.
client provides access to the global nested object that serves as a variables storage.
The global variables storage, which is used for setting, retrieving, or removing variables.
In your HTTP requests, you can access a variable saved in
variable_name by using the
|Creates a test with the name |
testName and body
func. All tests are executed after the response handler script.
|Checks that the specified |
true; throws an exception otherwise. The optional
message parameter serves as an exception message.
text to the response handler or test stdout and then terminates the line.
Global variables storage
global object serves as a variables storage and is used for setting, retrieving, or removing variables.
|Saves the variable with the |
varName name to the storage and sets its value to
|Returns the value of the |
|Checks whether the |
global object has no variables defined.
|Removes the |
varName variable from the variables storage.
|Removes all variables from the variables storage.|
Last modified: 08 March 2021