Method Protocols.HTTP.Session()->async_put_url()
- Method
async_get_url
Method async_put_url
Method async_delete_url
Method async_post_url
Requestasync_get_url(URLurl,void|mappingquery_variables,function(:void)|zerocallback_headers_ok,function(:void)|zerocallback_data_ok,function(:void)|zerocallback_fail,mixed...callback_arguments)
Requestasync_put_url(URLurl,void|stringfile,void|mappingquery_variables,function(:void)|zerocallback_headers_ok,function(:void)|zerocallback_data_ok,function(:void)|zerocallback_fail,mixed...callback_arguments)
Requestasync_delete_url(URLurl,void|mappingquery_variables,function(:void)|zerocallback_headers_ok,function(:void)|zerocallback_data_ok,function(:void)|zerocallback_fail,mixed...callback_arguments)
Requestasync_post_url(URLurl,mappingquery_variables,function(:void)|zerocallback_headers_ok,function(:void)|zerocallback_data_ok,function(:void)|zerocallback_fail,mixed...callback_arguments)- Description
Sends a HTTP GET, POST, PUT or DELETE request to the server in the URL asynchroneously, and call the corresponding callbacks when result arrives (or not). The callbacks will receive the created Request object as first argument, then the given callback_arguments, if any.
callback_headers_ok is called when the HTTP request has received headers.
callback_data_ok is called when the HTTP request has been received completely, data and all.
callback_fail is called when the HTTP request has failed, on a TCP/IP or DNS level, or has received a forced timeout.
The created Request object is returned.