Method Protocols.HTTP.do_async_method()
- Method
do_async_method
voiddo_async_method(stringmethod,string|Standards.URIurl,void|mapping(string:int|string|array(string))query_variables,void|mapping(string:string|array(string)|int)request_headers,Protocols.HTTP.Querycon,void|stringdata)- Description
Low level asynchronous HTTP call method.
- Parameter
method The HTTP method to use, e.g.
"GET".- Parameter
url The URL to perform
methodon. Should be a complete URL, including protocol, e.g."https://pike.lysator.liu.se/".- Parameter
query_variables Calls http_encode_query and appends the result to the URL.
- Parameter
request_headers The HTTP headers to be added to the request. By default the headers User-agent, Host and, if needed by the url, Authorization will be added, with generated contents. Providing these headers will override the default. Setting the value to 0 will remove that header from the request.
- Parameter
con Previously initialized connection object. In particular the callbacks must have been set (Query.set_callbacks()).
- Parameter
data Data payload to be transmitted in the request.
- See also