Method GetHeaderNames
Returns Header NamesUsage
Function GetHeaderNames(
Boolean Report [Optional]
)
Parameters
Report (optional)
Type: Boolean
Default Value: False
Generate report for this step
Returns
Array
Example
VBScript
Server("API Server").Method("Method").Execute
' Execute method should be called before get header names
headers = Server("API Server").Method("Method").GetHeaderNames(True)
JavaScript
Server("API Server").Method("Method").Execute();
// Execute method should be called before get header names
var headers = Server("API Server").Method("Method").GetHeaderNames(true);
Comment
Execute method should be called before get header names