grilo-net-0.3.vapi (1856B)
1 /* grilo-net-0.3.vapi generated by vapigen-0.30, do not modify. */ 2 3 [CCode (cprefix = "GrlNet", gir_namespace = "GrlNet", gir_version = "0.3", lower_case_cprefix = "grl_net_")] 4 namespace GrlNet { 5 [CCode (cheader_filename = "net/grl-net.h", type_id = "grl_net_wc_get_type ()")] 6 public class Wc : GLib.Object { 7 [CCode (has_construct_function = false)] 8 public Wc (); 9 public static GLib.Quark error_quark (); 10 public void flush_delayed_requests (); 11 public async bool request_async (string uri, GLib.Cancellable? cancellable, out unowned string content, out size_t length) throws GLib.Error; 12 [CCode (finish_name = "grl_net_wc_request_finish")] 13 public async bool request_with_headers_async (string uri, GLib.Cancellable? cancellable, ..., out unowned string content, out size_t length) throws GLib.Error; 14 [CCode (finish_name = "grl_net_wc_request_finish")] 15 public async bool request_with_headers_hash_async (string uri, GLib.HashTable<string,string>? headers, GLib.Cancellable? cancellable, out unowned string content, out size_t length) throws GLib.Error; 16 public void set_cache (bool use_cache); 17 public void set_cache_size (uint cache_size); 18 public void set_log_level (uint log_level); 19 public void set_throttling (uint throttling); 20 [NoAccessorMethod] 21 public bool cache { get; set construct; } 22 [NoAccessorMethod] 23 public uint cache_size { get; set construct; } 24 [NoAccessorMethod] 25 public uint loglevel { get; set; } 26 [NoAccessorMethod] 27 public uint throttling { get; set; } 28 [NoAccessorMethod] 29 public string user_agent { owned get; set construct; } 30 } 31 [CCode (cheader_filename = "net/grl-net.h", cprefix = "GRL_NET_WC_ERROR_", has_type_id = false)] 32 public enum WcError { 33 UNAVAILABLE, 34 PROTOCOL_ERROR, 35 AUTHENTICATION_REQUIRED, 36 NOT_FOUND, 37 CONFLICT, 38 FORBIDDEN, 39 NETWORK_ERROR, 40 PROXY_ERROR, 41 CANCELLED 42 } 43 }