Editar

Compartir a través de


HttpResponseMessage.GetCookieNames() Method

Version: Available or changed with runtime version 13.0.

Gets the list of cookie names.

Syntax

CookieNames :=   HttpResponseMessage.GetCookieNames()

Parameters

HttpResponseMessage
 Type: HttpResponseMessage
An instance of the HttpResponseMessage data type.

Return Value

CookieNames
 Type: List of [Text]
The list of cookie names.

Remarks

The HttpResponseMessage.GetCookieNames method allows you to get the list of cookie names from the response message.

// This example shows how to get the list of cookie names from the response message

local procedure GetCookieNamesHttpResponseMessageExample()
var
    Response: HttpResponseMessage;
    CookieNames: List of [Text];
begin
    // Get list of cookie names from the response
    CookieNames := Response.GetCookieNames();
end;

HttpResponseMessage Data Type
Getting Started with AL
Developing Extensions