Get the list of response headers.
Dictionary of [Text, Text]
- Specifies the dictionary variable, that will be filled with response headers.Boolean
- True if some headers were found, false otherwise.
var
APIScriptRWU: Codeunit "API Script RWU";
Headers: Dictionary of [Text,Text];
HeaderValue: Text;
//Get all response headers in Dictionary and check them
if APIScriptRWU.GET_RESPONSE_HEADERS(Headers) then begin
if not Headers.ContainsKey('Content-Type') then
Error('Content-Type header missing.');
//...
end;
Function does not work properly with paginated result – it returns data from last page only.