Web.HTTPApp.TWebRequest.ExtractFields

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure ExtractFields(Separators, _WhiteSpace: TExtractCharSet;
const Content: string; Strings: TStrings); overload;

C++

void __fastcall ExtractFields(const TExtractCharSet &Separators, const TExtractCharSet &_WhiteSpace, const System::UnicodeString Content, System::Classes::TStrings* Strings)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
Web.HTTPApp.pas
Web.HTTPApp.hpp
Web.HTTPApp TWebRequest

Description

Parses a multi-valued string into its constituent fields.

Call ExtractFields to parse a multi-valued HTTP header into separate strings for each value. For example, if the separator character of the UserAgent property is known, ExtractFields can parse this property into separate UserAgent values.

Separators is a set of characters that are used to separate individual values within the multi-valued string. WhiteSpace is a set of characters that are to be ignored when parsing the string. Content is the multi-valued string to be parsed. Strings is the TStrings object that receives the individual values that are parsed from Content.

See Also