Skip to content

TCookies

Collection of HTTP cookies

Declaration

Source position: httpdefs.pp line 208

type

  TCookies = class(TCollection)
  public
    function Add : TCookie;
    function AddFromString : TCookie;
    function CookieByName : TCookie;
    function FindCookie : TCookie;
    function IndexOfCookie : Integer;
    property Items[Index : Integer]: TCookie; {rw}
  end;

Description

TCookies is a collection class that manages multiple TCookie objects. It provides methods to add, find, and access cookies by name or index.

Properties

Member Visibility Description
Items public Cookie at the specified index
See all Properties

Methods

Member Visibility Description
Add public Adds a new cookie to the collection
AddFromString public Adds a cookie from a string representation
CookieByName public Finds a cookie by name
FindCookie public Finds a cookie by name
IndexOfCookie public Returns the index of a cookie by name
See all Methods

See also

Name Description
TCookie HTTP cookie implementation