System.Net.HttpClientComponent.TNetHTTPRequest.Merge

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Merge(const AURL: string; const ASource: TStream; const AHeaders: TNetHeaders = nil): IHTTPResponse;

C++

System::Net::Httpclient::_di_IHTTPResponse __fastcall Merge(const System::UnicodeString AURL, System::Classes::TStream* const ASource, const System::DynamicArray<System::Net::Urlclient::TNameValuePair> AHeaders = System::DynamicArray<System::Net::Urlclient::TNameValuePair>());

Properties

Type Visibility Source Unit Parent
function public
System.Net.HTTPClientComponent.pas
System.Net.HTTPClientComponent.hpp
System.Net.HttpClientComponent TNetHTTPRequest

Description

Sends an HTTP request to the specified URL with the specified data (ASource) using the MERGE HTTP request method, waits for the server to send a response, and returns the HTTP response of the server.

Use AHeaders to include custom HTTP request headers in your HTTP request.

If your HTTP request must go through a proxy HTTP server that may not support the MERGE HTTP request method, use MergeAlternative instead to disguise your MERGE request method as a PUT request method.

Merge raises an ENetHTTPRequestException if the HTTP request reaches the maximum number of redirects of the HTTP client of your request.

See Also