Data.Cloud.AzureAPI.TAzureBlobService.PreflightBlobRequest

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure PreflightBlobRequest(const AContainerName: string; const AOrigin: string;
const AAccessControlRequestMethod: string; const AAccessControlRequestHeaders: string;
const ARule: TCorsRule; const AResponseInfo: TCloudResponseInfo) overload;
procedure PreflightBlobRequest(const AContainerName, ABlobName: string; const AOrigin: string;
const AAccessControlRequestMethod: string; const AAccessControlRequestHeaders: string;
const ARule: TCorsRule; const AResponseInfo: TCloudResponseInfo) overload;

C++

void __fastcall PreflightBlobRequest(const System::UnicodeString AContainerName, 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)/* overload */;
void __fastcall PreflightBlobRequest(const System::UnicodeString AContainerName, const System::UnicodeString ABlobName, 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)/* overload */;

Properties

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

Description

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

PreflightBlobRequest receives the following parameters:

  • AContainerName is the name of the target blob container resource.
  • ABlobName (optional) is the name of the target blob 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 blob 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