Pike v8.1 release 6

Method Protocols.HTTP.Promise.delete_url()


Method delete_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 a Sucess or Failure object as argument respectively.

For an example of usage see Protocols.HTTP.Promise