requestSupport
- Source:
 
Methods
- 
    
<static> initialize( [options])
 - 
    
    
Initializes the "request" defaults. Should be called in a context which
contains the CucumberJS methods (Given,Then,Before, etc.)Parameters:
Name Type Argument Default Description optionsobject <optional> 
{} merged with
Merged with standard defaults
to set request defaultOptions- Source:
 
Returns:
undefined
Example
requestSupport.initialize.call(this, options);
 - 
    
<static> requestGET(routeStr [, options])
 - 
    
    
requestGET - Description
Parameters:
Name Type Argument Default Description routeStrstring Description
optionsobject <optional> 
{} Description
- Source:
 
Returns:
Description
- Type
 - type
 
 - 
    
<static> requestPOST(routeStr, bodyStr [, options])
 - 
    
    
Executes POST request to given
routeStrbodyStr- as a string will be interpreted as JSON and passed to the request.
 - as an object with a 
rawproperty it is interpreted as a single tow cucumber table.
The table contents are merged, interpreted as JSON and passed to the request. - as a plainObject it is passsed directly to the request.
 - as a function it is assumed to be a 
donecallback and an empty body is sent to the request 
Parameters:
Name Type Argument Default Description routeStrstring bodyStrstring | object | function optionsobject <optional> 
{} Overides to the request defaults.
- Source:
 
Returns:
Response promise from
requestornullfor callback style calls.- Type
 - Promise | null