The HttpLoadHeaderConfig function loads header configurations from the specified header configuration file and applies them to the header collection.
Read the header file set in the Studio Configuration Menu > API Settings > HTTP Header Settings window, and register the header key value in the specified header collection.
int @HttpLoadHeaderConfig(string headerId, string headerFileName);
Parameters
string headerId : Identifier of the header collection to be removed
string headerFileName : Header settings filename (without extension)
Return Value
1 : Success
0 : Fail
Example)
string headerId = "myHeader";
string configFileName = "api_headers"; // Load the api_headers.header file in the API folder
int result = @HttpLoadHeaderConfig(headerId, configFileName);
Version information
Supported Version: 10.3.6.25 or later
Related helps)