Method HttpClient():sendAsync() Foundation
Sends an asynchronous request to the server.
METHOD :sendAsync() --> self
:sendAsync() returns the object executing the method.
The method :sendAsync() sends a HTTP request to the server. Unlike :send()this method executes asynchronously, which means it does not wait for the server's response. Instead, :sendAsync()initiates the request and returns immediately, allowing the application to continue executing while the request is processed.
Once processing is complete, the status of the operation is reflected in the HTTP status code returned by :getStatusCode(). The HTTP status code should be checked prior to accessing the response data for ensuring the request was processed successfully. The full details of the server's response are accessible via the HTTP response object stored in the :HttpResponse member variable.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.