Data.Cloud.AzureAPI.TAzureQueueService.PreflightQueueRequest
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);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
procedure function |
public | Data.Cloud.AzureAPI.pas Data.Cloud.AzureAPI.hpp |
Data.Cloud.AzureAPI | TAzureQueueService |
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:
AQueueNameis the name of the target queue resource.AOriginis the origin that issues the request.AAccessControlRequestMethodis 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 ofAAccessControlRequestHeadersshould be "accept,content-type".ARuleis an instance of TCorsRule to fill with the CORS rules of the queue service.AResponseInfois 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.