Classes

Method HttpClient():wait() Foundation

Waits for completion of an asynschronous request.

Syntax
 
METHOD :wait() --> self 
Return

:wait() returns the object executing the method.

Description

The method :wait() pauses the current thread until an asynchronous request initiated via the :sendAsync() method completes. Once :wait() returns, the status of the operation is reflected in the HTTP status code returned by :getStatusCode(). If the request was handled successfully, the response sent by the server is accessible via the HTTP response object stored in the :HttpResponse member variable.

Feedback

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.