http
Provides methods for working with HTTP(S)
Last updated
Provides methods for working with HTTP(S)
Last updated
Assert if HTTP cookie is presented in the response
Parameters:
Name | Type | Description |
---|---|---|
Assert if HTTP header is presented in the response
Parameters:
Name | Type | Description |
---|---|---|
Assert response time
Parameters:
Name | Type | Description |
---|---|---|
Assert the last HTTP response's status code
Parameters:
Assert HTTP 200 OK status
Assert whether the specified pattern is present in the response body.
Parameters:
Performs HTTP DELETE
Parameters:
Returns:
Object
- Response object.
Performs HTTP GET
** Usage example:**
Parameters:
Returns:
Object
- Response object.
Returns last response object
Returns:
Object
- Response object.
Returns last response body
Returns:
String
- Response body.
Returns response headers
Returns:
Object
- Response headers.
Returns response URL
Returns:
String
- Response URL.
Performs HTTP PATCH
Parameters:
Returns:
Object
- Response object.
Performs HTTP POST
Parameters:
Returns:
Object
- Response object.
Performs HTTP PUT
Parameters:
Returns:
Object
- Response object.
Sets user credentials for NTLM authentication process
Parameters:
Sets user defined HTTP options (such as proxy, decompress and etc.)
Parameters:
Sets proxy url to be used for connections with the service.
Parameters:
Opens new transaction.
The transaction will persist till a new one is opened. Transaction names must be unique.
Parameters:
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
cookieName
String
A HTTP cookie name.
cookieValuePattern
String
optional
An optional HTTP cookie value pattern.
headerName
String
A HTTP header name.
headerValuePattern
String
optional
An optional HTTP header value pattern.
maxTime
Number
Maximum response time in milliseconds.
codeList
Number
|Array
A single status code or a list of codes.
pattern
String
Pattern to assert.
url
String
URL.
headers
Object
optional
HTTP headers.
data
Object
Data.
url
String
URL.
headers
Object
optional
HTTP headers.
url
String
URL.
data
Object
Data.
headers
Object
optional
HTTP headers.
url
String
URL.
data
Object
Data.
headers
Object
optional
HTTP headers.
isFormData
Boolean
optional
Indicates if "data" parameter is of URL-encoded form type.
url
String
URL.
data
Object
Data.
headers
Object
optional
HTTP headers.
username
String
NTLM username.
password
String
NTLM password.
domain
String
optional
NTLM domain name, if applicable.In addition to the options listed in the linked document, 'deflateRaw' option can be used when server returns Deflate-compressed stream without headers.
opts
Object
HTTP request options object, see Request Options. In addition to the options listed in the linked document, 'deflateRaw' option can be used when server returns Deflate-compressed stream without headers.
url
String
Proxy server URL. Not passing this argument will reset the proxy settings.
name
String
The transaction name.