System.Net.HttpClient.THTTPClient.BeginPut
Delphi
function BeginPut(const AURL: string; const ASource: TStream = nil; const AResponseContent: TStream = nil; const AHeaders: TNetHeaders = nil): IHTTPResponse; overload;
function BeginPut(const AsyncCallback: TAsyncCallback; const AURL: string; const ASource: TStream = nil; const AResponseContent: TStream = nil; const AHeaders: TNetHeaders = nil): IHTTPResponse; overload;
function BeginPut(const AsyncCallbackEvent: TAsyncCallbackEvent; const AURL: string; const ASource: TStream = nil; const AResponseContent: TStream = nil; const AHeaders: TNetHeaders = nil): IHTTPResponse; overload;
C++
_di_IHTTPResponse __fastcall BeginPut(const System::UnicodeString AURL, System::Classes::TStream* const ASource = (System::Classes::TStream*)(0x0), System::Classes::TStream* const AResponseContent = (System::Classes::TStream*)(0x0), const System::DynamicArray<System::Net::Urlclient::TNameValuePair> AHeaders = System::DynamicArray<System::Net::Urlclient::TNameValuePair>())/* overload */;
_di_IHTTPResponse __fastcall BeginPut(const System::Classes::_di_TAsyncCallback AsyncCallback, const System::UnicodeString AURL, System::Classes::TStream* const ASource = (System::Classes::TStream*)(0x0), System::Classes::TStream* const AResponseContent = (System::Classes::TStream*)(0x0), const System::DynamicArray<System::Net::Urlclient::TNameValuePair> AHeaders = System::DynamicArray<System::Net::Urlclient::TNameValuePair>())/* overload */;
_di_IHTTPResponse __fastcall BeginPut(const System::Classes::TAsyncProcedureEvent AsyncCallbackEvent, const System::UnicodeString AURL, System::Classes::TStream* const ASource = (System::Classes::TStream*)(0x0), System::Classes::TStream* const AResponseContent = (System::Classes::TStream*)(0x0), const System::DynamicArray<System::Net::Urlclient::TNameValuePair> AHeaders = System::DynamicArray<System::Net::Urlclient::TNameValuePair>())/* overload */;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | System.Net.HTTPClient.pas System.Net.HTTPClient.hpp |
System.Net.HttpClient | THTTPClient |
Description
Starts an asynchronous HTTP request using the PUT HTTP request method.
BeginPut also receives the following parameters:
AURLis the target URL of your request.ASourceis a stream that contains the data to send.
If you do not specify a stream forAResponseContent(optional) is a stream where you want to receive the response data as your HTTP client downloads the response data from the target server.AResponseContent, you can wait for your HTTP client to download the whole response data, and obtain the response data as a stream from the ContentStream property of the response object that BeginGet returns.AHeaders(optional) is a list of headers to include in the request.AsyncCallback(optional) is a callback procedure to be called when a response is received or the request fails.AsyncCallbackEvent(optional) is an event handler to be called when a response is received or the request fails.
For more information, see BeginExecute.
See Also
- System.Net.HttpClient.THTTPClient.BeginDelete
- System.Net.HttpClient.THTTPClient.BeginGet
- System.Net.HttpClient.THTTPClient.BeginGetRange
- System.Net.HttpClient.THTTPClient.BeginHead
- System.Net.HttpClient.THTTPClient.BeginMerge
- System.Net.HttpClient.THTTPClient.BeginMergeAlternative
- System.Net.HttpClient.THTTPClient.BeginOptions
- System.Net.HttpClient.THTTPClient.BeginPatch
- System.Net.HttpClient.THTTPClient.BeginPatchAlternative
- System.Net.HttpClient.THTTPClient.BeginPost
- System.Net.HttpClient.THTTPClient.BeginTrace