headers, list, names, api, request, response, send, soap, rest, get, post, put, delete

Method GetHeaderNames

API

Returns Header Names

Watch this video to learn how to use this method

Have a problem with playback?
GetHeaderNames method returns names of all of the API response headers. Prior to use this function you need to insert Execute method. The output of GetHeaderNames is array of header's names presented in the received response. We will use messagebox to demonstrate the output. Here you can see all presented headers separated by the comma.

Usage

Function GetHeaderNames()

Method

GetHeaderNames

Parameters

This method does not take parameters

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()

JavaScript

Server("API Server").Method("Method").Execute();
// Execute method should be called before get header names
var headers = Server("API Server").Method("Method").GetHeaderNames();

Method

Execute

Comment

Execute method should be called before get header names

Method

GetHeaderNames

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227