Skip to main content
Table of Contents

TTMSFNCCloudBaseRequestResult.AddBasicAuthHeader Method

Adds an HTTP Basic Authorization header using Base64-encoded credentials and returns the created header object.

API unit family: TMSFNCCloudBase Declaring type: TTMSFNCCloudBaseRequestResult Inherited from: TTMSFNCCloudBaseRequest

Syntax

FMX.TMSFNCCloudBase.hppPascalC++
function AddBasicAuthHeader(const AUserName: string; const APassword: string): TTMSFNCCloudBaseRequestHeader;
TTMSFNCCloudBaseRequestHeader* __fastcall AddBasicAuthHeader(const System::UnicodeString AUserName, const System::UnicodeString APassword);

Parameters

Name Description
AUserName The username for Basic authentication.
APassword The password for Basic authentication.

Returns

The newly created TTMSFNCCloudBaseRequestHeader containing the Authorization field.