request_with_headers_hash_async


Description:

[ CCode ( finish_name = "grl_net_wc_request_finish" ) ]
[ Version ( since = "0.2.2" ) ]
public async bool request_with_headers_hash_async (string uri, HashTable<string,string>? headers, Cancellable? cancellable, out unowned uint8[] content) throws Error

Request the fetching of a web resource given the uri.

This request is asynchronous, thus the result will be returned within the callback.

Parameters:

this

a Wc instance

uri

The URI of the resource to request

headers

a set of additional HTTP headers for this request or null to ignore

cancellable

a Cancellable instance or null to ignore

callback

The callback when the result is ready

user_data

User data set for the callback