Method Protocols.HTTP.Promise.get_url()
- Method get_url
Concurrent.Future
get_url(Protocols.HTTP.Session.URL
url
,void
|Arguments
args
)
Concurrent.Future
post_url(Protocols.HTTP.Session.URL
url
,void
|Arguments
args
)
Concurrent.Future
put_url(Protocols.HTTP.Session.URL
url
,void
|Arguments
args
)
Concurrent.Future
delete_url(Protocols.HTTP.Session.URL
url
,void
|Arguments
args
)- Description
Sends a GET, POST, PUT or DELETE request to
url
asynchronously. A Concurrent.Future object is returned on which you can register callbacks via Concurrent.Future->on_success() and Concurrent.Future.on_failure() which will get aSucess
or Failure object as argument respectively.For an example of usage see Protocols.HTTP.Promise