Get the list of request headers.
Dictionary of [Text, Text]
- Specifies the dictionary variable, that will be filled with request 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 request headers in Dictionary and check them
if APIScriptRWU.GET_REQUEST_HEADERS(Headers) then begin
if not Headers.ContainsKey('Content-Type') then
Error('Content-Type header missing.');
//...
end;