Data.Cloud.AzureAPI.TAzureTableService.PreflightTableRequest

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure PreflightTableRequest(const ATableName: string; const AOrigin: string;
const AAccessControlRequestMethod: string; const AAccessControlRequestHeaders: string;
const ARule: TCorsRule; const AResponseInfo: TCloudResponseInfo);

C++

void __fastcall PreflightTableRequest(const System::UnicodeString ATableName, const System::UnicodeString AOrigin, const System::UnicodeString AAccessControlRequestMethod, const System::UnicodeString AAccessControlRequestHeaders, Data::Cloud::Azureapi::Storageanalytics::TCorsRule* const ARule, Data::Cloud::Cloudapi::TCloudResponseInfo* const AResponseInfo);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Data.Cloud.AzureAPI.pas
Data.Cloud.AzureAPI.hpp
Data.Cloud.AzureAPI TAzureTableService

Description

Fills the specified instance of TCorsRule with the CORS rules of the table service for requests that match the specified parameters.

PreflightTableRequest receives the following parameters:

  • ATableName is the name of the target table resource.
  • AOrigin is the origin that issues the request.
  • AAccessControlRequestMethod is the HTTP method of the request.
  • AAccessControlRequestHeaders (optional) is a string that contains the headers of the request. For example, if the request includes the "Accept" and "Content-Type" headers, the value of AAccessControlRequestHeaders should be "accept,content-type".
  • ARule is an instance of TCorsRule to fill with the CORS rules of the table service.
  • AResponseInfo is an optional instance of TCloudResponseInfo to store the information of the response. Use a nil value if you do not need the information of the response.

See Also