Wc
Object Hierarchy:
Description:
[ CCode ( type_id = "grl_net_wc_get_type ()" ) ]
public class Wc : Object
Content:
Properties:
- public bool cache { get; set construct; }
- public uint cache_size { get; set construct; }
- public uint loglevel { get; set; }
- public uint throttling { get; set; }
- public string user_agent { owned get; set construct; }
Static methods:
Creation methods:
- public Wc ()
Creates a new Wc.
Methods:
- public void flush_delayed_requests ()
This method will flush all the pending request in the queue.
- public async bool request_async (string uri, Cancellable? cancellable, out unowned uint8[] content) throws Error
Request the fetching of a web resource given the uri
.
- public async bool request_with_headers_async (string uri, Cancellable? cancellable, ..., out unowned uint8[] content) throws Error
Request the fetching of a web resource given the uri
.
- 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
.
- public void set_cache (bool use_cache)
Sets if cache must be used.
- public void set_cache_size (uint cache_size)
Sets the new maximum size of cache, in Megabytes.
- public void set_log_level (uint log_level)
Setting the log level the logger feature is added into the libsoup
session.
- public void set_throttling (uint throttling)
Setting this property, the Wc will queue
all the requests and will dispatch them with a pause between them of this value.
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref