Data.Cloud.AmazonAPI.TAmazonActionConditional.PopulateHeaders

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
Data.Cloud.AmazonAPI.pas
Data.Cloud.AmazonAPI.hpp
Unit: Data.Cloud.AmazonAPI
Parent: TAmazonActionConditional

Delphi

procedure PopulateHeaders(Headers: TStrings; ForCopy: Boolean = False);

C++

void __fastcall PopulateHeaders(System::Classes::TStrings* Headers, bool ForCopy = false);

Description

Populates the given header list with the key/value pair of any field with an assigned value.

The keys used will be the header names, as required by Amazon requests. Different header names will be used if ForCopy is set to True. For example, if False, one header will be 'If-Modified-Since' but, if True, that header will instead be 'x-amz-copy-source-if-modified-since'.

The following table shows the significance of the parameters:

Parameter Description

Headers

The headers list to populate.

ForCopy

Set to True to set for copying the source headers, and to False to set regular headers.

See Also