System.Net.HttpClient.THTTPClient.Merge
Delphi
function Merge(const AURL: string; const ASource: TStream; const AHeaders: TNetHeaders = nil): IHTTPResponse;
C++
_di_IHTTPResponse __fastcall Merge(const System::UnicodeString AURL, System::Classes::TStream* const ASource, const System::Net::Urlclient::TNetHeaders AHeaders = System::DynamicArray<System::Net::Urlclient::TNameValuePair>());
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Net.HttpClient.pas System.Net.HTTPClient.hpp |
System.Net.HttpClient | THTTPClient |
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.
See Also
- System.Net.HttpClient.THTTPClient.Delete
- System.Net.HttpClient.THTTPClient.Get
- System.Net.HttpClient.THTTPClient.Head
- System.Net.HttpClient.THTTPClient.Options
- System.Net.HttpClient.THTTPClient.Patch
- System.Net.HttpClient.THTTPClient.Post
- System.Net.HttpClient.THTTPClient.Put
- System.Net.HttpClient.THTTPClient.Trace