Class TBrookHTTPCookies

Unit

Declaration

type TBrookHTTPCookies = class(TOwnedCollection)

Description

Server side HTTP cookie list.

Hierarchy

Overview

Methods

Public constructor Create(AOwner: TPersistent); virtual;
Public class function GetCookieClass: TBrookHTTPCookieClass; virtual;
Public procedure Assign(ASource: TPersistent); override;
Public function GetEnumerator: TBrookHTTPCookiesEnumerator;
Public function Add: TBrookHTTPCookie; virtual;
Public function Remove(const AName: string): Boolean; virtual;
Public function IndexOf(const AName: string): Integer; virtual;
Public function Find(const AName: string): TBrookHTTPCookie; virtual;
Public function First: TBrookHTTPCookie; virtual;
Public function Last: TBrookHTTPCookie; virtual;

Properties

Public property Items[AIndex:Integer]: TBrookHTTPCookie read GetItem write SetItem;

Description

Methods

Public constructor Create(AOwner: TPersistent); virtual;

Creates an instance of TBrookHTTPCookies.

Parameters
AOwner[in]
Cookies persistent.
Public class function GetCookieClass: TBrookHTTPCookieClass; virtual;

Gets the default class for cookie item creation.

Public procedure Assign(ASource: TPersistent); override;

Copies the items of the source cookies.

Parameters
ASource[in]
Cookies source to be copied.
Public function GetEnumerator: TBrookHTTPCookiesEnumerator;

Creates an enumerator to iterate the cookies though for..in.

Public function Add: TBrookHTTPCookie; virtual;

Adds a new cookie to the cookies list.

Public function Remove(const AName: string): Boolean; virtual;

Removes a cookie from the cookies list by its name.

Parameters
AName[in]
Cookie name.
Public function IndexOf(const AName: string): Integer; virtual;

Gets the cookie index by its name.

Public function Find(const AName: string): TBrookHTTPCookie; virtual;

Finds a cookie in the cookies list by its name.

Parameters
AName[in]
Cookie name.
Public function First: TBrookHTTPCookie; virtual;

Gets the first cookie in the cookies list.

Public function Last: TBrookHTTPCookie; virtual;

Gets the last cookie in the cookies list.

Properties

Public property Items[AIndex:Integer]: TBrookHTTPCookie read GetItem write SetItem;

Gets/sets a cookie from/to the cookies list by its index.


Generated by PasDoc 0.16.0.