Data.Cloud.AzureAPI.TAzureQueueService.PreflightQueueRequest

From RAD Studio API Documentation
Jump to: navigation, search

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

Delphi

procedure PreflightQueueRequest(const AQueueName: string; const AOrigin: string;
const AAccessControlRequestMethod: string; const AAccessControlRequestHeaders: string;
const ARule: TCorsRule; const AResponseInfo: TCloudResponseInfo);

C++

void __fastcall PreflightQueueRequest(const System::UnicodeString AQueueName, 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);

Description

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

PreflightQueueRequest receives the following parameters:

  • AQueueName is the name of the target queue 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 queue 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