Release 0.41.92
[vala-gnome.git] / vapi / libsoup-2.4.vapi
blobb5182b946b061014d01b1bb2f88b06e8eb3ac8be
1 /* libsoup-2.4.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Soup", gir_namespace = "Soup", gir_version = "2.4", lower_case_cprefix = "soup_")]
4 namespace Soup {
5         namespace Form {
6                 [CCode (cheader_filename = "libsoup/soup.h")]
7                 public static GLib.HashTable<weak string,weak string> decode (string encoded_form);
8                 [CCode (cheader_filename = "libsoup/soup.h")]
9                 [Version (since = "2.26")]
10                 public static GLib.HashTable<weak string,weak string>? decode_multipart (Soup.Message msg, string? file_control_name, out string filename, out string content_type, out Soup.Buffer file);
11                 [CCode (cheader_filename = "libsoup/soup.h")]
12                 public static string encode (...);
13                 [CCode (cheader_filename = "libsoup/soup.h")]
14                 public static string encode_datalist (GLib.Datalist<string> form_data_set);
15                 [CCode (cheader_filename = "libsoup/soup.h")]
16                 public static string encode_hash (GLib.HashTable<string,string> form_data_set);
17                 [CCode (cheader_filename = "libsoup/soup.h")]
18                 public static string encode_valist (string first_field, va_list args);
19                 [CCode (cheader_filename = "libsoup/soup.h")]
20                 public static Soup.Message request_new (string method, string uri, ...);
21                 [CCode (cheader_filename = "libsoup/soup.h")]
22                 public static Soup.Message request_new_from_datalist (string method, string uri, GLib.Datalist<string> form_data_set);
23                 [CCode (cheader_filename = "libsoup/soup.h")]
24                 public static Soup.Message request_new_from_hash (string method, string uri, GLib.HashTable<string,string> form_data_set);
25                 [CCode (cheader_filename = "libsoup/soup.h")]
26                 [Version (since = "2.26")]
27                 public static Soup.Message request_new_from_multipart (string uri, Soup.Multipart multipart);
28         }
29         namespace XMLRPC {
30                 [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_XMLRPC_ERROR_")]
31                 [GIR (name = "XMLRPCError")]
32                 public errordomain Error {
33                         ARGUMENTS,
34                         RETVAL
35                 }
36                 [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_XMLRPC_FAULT_")]
37                 [GIR (name = "XMLRPCFault")]
38                 public errordomain Fault {
39                         PARSE_ERROR_NOT_WELL_FORMED,
40                         PARSE_ERROR_UNSUPPORTED_ENCODING,
41                         PARSE_ERROR_INVALID_CHARACTER_FOR_ENCODING,
42                         SERVER_ERROR_INVALID_XML_RPC,
43                         SERVER_ERROR_REQUESTED_METHOD_NOT_FOUND,
44                         SERVER_ERROR_INVALID_METHOD_PARAMETERS,
45                         SERVER_ERROR_INTERNAL_XML_RPC_ERROR,
46                         APPLICATION_ERROR,
47                         SYSTEM_ERROR,
48                         TRANSPORT_ERROR
49                 }
50                 [CCode (cheader_filename = "libsoup/soup.h")]
51                 [PrintfFormat]
52                 public static string build_fault (int fault_code, string fault_format, ...);
53                 [CCode (cheader_filename = "libsoup/soup.h")]
54                 [Version (deprecated = true)]
55                 public static string? build_method_call (string method_name, [CCode (array_length_cname = "n_params", array_length_pos = 2.1)] GLib.Value[] @params);
56                 [CCode (cheader_filename = "libsoup/soup.h")]
57                 [Version (deprecated = true)]
58                 public static string? build_method_response (GLib.Value value);
59                 [CCode (cheader_filename = "libsoup/soup.h")]
60                 [Version (since = "2.52")]
61                 public static string build_request (string method_name, GLib.Variant @params) throws GLib.Error;
62                 [CCode (cheader_filename = "libsoup/soup.h")]
63                 [Version (since = "2.52")]
64                 public static string build_response (GLib.Variant value) throws GLib.Error;
65                 [CCode (cheader_filename = "libsoup/soup.h")]
66                 public static GLib.Quark error_quark ();
67                 [CCode (cheader_filename = "libsoup/soup.h", sentinel = "G_TYPE_INVALID")]
68                 [Version (deprecated = true)]
69                 public static bool extract_method_call (string method_call, int length, out string method_name, ...);
70                 [CCode (cheader_filename = "libsoup/soup.h", sentinel = "G_TYPE_INVALID")]
71                 [Version (deprecated = true)]
72                 public static bool extract_method_response (string method_response, int length, ...) throws Soup.XMLRPC.Fault;
73                 [CCode (cheader_filename = "libsoup/soup.h")]
74                 public static GLib.Quark fault_quark ();
75                 [CCode (cheader_filename = "libsoup/soup.h")]
76                 [Version (since = "2.52")]
77                 public static Soup.Message message_new (string uri, string method_name, GLib.Variant @params) throws GLib.Error;
78                 [CCode (cheader_filename = "libsoup/soup.h")]
79                 [Version (since = "2.52")]
80                 public static void message_set_fault (Soup.Message msg, int fault_code, string fault_format, ...);
81                 [CCode (cheader_filename = "libsoup/soup.h")]
82                 [Version (since = "2.52")]
83                 public static bool message_set_response (Soup.Message msg, GLib.Variant value) throws GLib.Error;
84                 [CCode (cheader_filename = "libsoup/soup.h")]
85                 [Version (deprecated = true)]
86                 public static bool parse_method_call (string method_call, int length, out string method_name, out GLib.ValueArray @params);
87                 [CCode (cheader_filename = "libsoup/soup.h")]
88                 [Version (deprecated = true)]
89                 public static bool parse_method_response (string method_response, int length, out GLib.Value value) throws Soup.XMLRPC.Fault;
90                 [CCode (cheader_filename = "libsoup/soup.h")]
91                 [Version (since = "2.52")]
92                 public static string parse_request (string method_call, int length, out Soup.XMLRPCParams @params) throws GLib.Error;
93                 [CCode (cheader_filename = "libsoup/soup.h")]
94                 [Version (since = "2.52")]
95                 public static GLib.Variant parse_response (string method_response, int length, string? signature) throws GLib.Error;
96                 [CCode (cheader_filename = "libsoup/soup.h", sentinel = "G_TYPE_INVALID")]
97                 [Version (deprecated = true)]
98                 public static Soup.Message request_new (string uri, string method_name, ...);
99                 [CCode (cheader_filename = "libsoup/soup.h")]
100                 [PrintfFormat]
101                 [Version (deprecated = true)]
102                 public static void set_fault (Soup.Message msg, int fault_code, string fault_format, ...);
103                 [CCode (cheader_filename = "libsoup/soup.h", sentinel = "G_TYPE_INVALID")]
104                 [Version (deprecated = true)]
105                 public static void set_response (Soup.Message msg, ...);
106                 [CCode (cheader_filename = "libsoup/soup.h")]
107                 [Version (since = "2.52")]
108                 public static Soup.Date variant_get_datetime (GLib.Variant variant) throws GLib.Error;
109                 [CCode (cheader_filename = "libsoup/soup.h")]
110                 [Version (since = "2.52")]
111                 public static GLib.Variant variant_new_datetime (Soup.Date date);
112         }
113         [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_address_get_type ()")]
114         public class Address : GLib.Object, GLib.SocketConnectable {
115                 [CCode (has_construct_function = false)]
116                 public Address (string name, uint port);
117                 [CCode (has_construct_function = false)]
118                 public Address.any (Soup.AddressFamily family, uint port);
119                 [Version (since = "2.26")]
120                 public bool equal_by_ip (Soup.Address addr2);
121                 [Version (since = "2.26")]
122                 public bool equal_by_name (Soup.Address addr2);
123                 [CCode (has_construct_function = false)]
124                 public Address.from_sockaddr (void* sa, int len);
125                 [Version (since = "2.32")]
126                 public GLib.SocketAddress get_gsockaddr ();
127                 public unowned string? get_name ();
128                 public unowned string? get_physical ();
129                 public uint get_port ();
130                 public void* get_sockaddr (int len);
131                 [Version (since = "2.26")]
132                 public uint hash_by_ip ();
133                 [Version (since = "2.26")]
134                 public uint hash_by_name ();
135                 public bool is_resolved ();
136                 public void resolve_async (GLib.MainContext? async_context, GLib.Cancellable? cancellable, [CCode (scope = "async")] Soup.AddressCallback callback);
137                 public uint resolve_sync (GLib.Cancellable? cancellable = null);
138                 [NoAccessorMethod]
139                 public Soup.AddressFamily family { get; construct; }
140                 public string name { get; construct; }
141                 public string physical { get; }
142                 public int port { get; construct; }
143                 [NoAccessorMethod]
144                 public string protocol { owned get; construct; }
145                 [NoAccessorMethod]
146                 public void* sockaddr { get; construct; }
147         }
148         [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_auth_get_type ()")]
149         public abstract class Auth : GLib.Object {
150                 [CCode (has_construct_function = false)]
151                 public Auth (GLib.Type type, Soup.Message msg, string auth_header);
152                 public virtual void authenticate (string username, string password);
153                 [Version (since = "2.54")]
154                 public virtual bool can_authenticate ();
155                 public virtual string get_authorization (Soup.Message msg);
156                 public unowned string get_host ();
157                 public string get_info ();
158                 public virtual GLib.SList<string> get_protection_space (Soup.URI source_uri);
159                 public unowned string get_realm ();
160                 public unowned string get_saved_password (string user);
161                 public GLib.SList<string> get_saved_users ();
162                 public unowned string get_scheme_name ();
163                 public void has_saved_password (string username, string password);
164                 [Version (since = "2.42")]
165                 public virtual bool is_ready (Soup.Message msg);
166                 public void save_password (string username, string password);
167                 public virtual bool update (Soup.Message msg, GLib.HashTable<void*,void*> auth_header);
168                 [NoAccessorMethod]
169                 public string host { owned get; set; }
170                 [NoAccessorMethod]
171                 public virtual bool is_authenticated { get; }
172                 [NoAccessorMethod]
173                 public bool is_for_proxy { get; set; }
174                 [NoAccessorMethod]
175                 public string realm { owned get; set; }
176                 public string scheme_name { get; }
177         }
178         [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_auth_basic_get_type ()")]
179         public class AuthBasic : Soup.Auth {
180                 [CCode (has_construct_function = false)]
181                 protected AuthBasic ();
182         }
183         [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_auth_digest_get_type ()")]
184         public class AuthDigest : Soup.Auth {
185                 [CCode (has_construct_function = false)]
186                 protected AuthDigest ();
187         }
188         [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_auth_domain_get_type ()")]
189         public abstract class AuthDomain : GLib.Object {
190                 [CCode (has_construct_function = false)]
191                 protected AuthDomain ();
192                 [NoWrapper]
193                 public virtual string accepts (Soup.Message msg, string header);
194                 [CCode (cname = "soup_auth_domain_accepts")]
195                 public string? accepts_authorization (Soup.Message msg);
196                 public void add_path (string path);
197                 public virtual string challenge (Soup.Message msg);
198                 public virtual bool check_password (Soup.Message msg, string username, string password);
199                 public bool covers (Soup.Message msg);
200                 public unowned string get_realm ();
201                 public void remove_path (string path);
202                 public void set_filter (owned Soup.AuthDomainFilter filter);
203                 public void set_generic_auth_callback (owned Soup.AuthDomainGenericAuthCallback auth_callback);
204                 public bool try_generic_auth_callback (Soup.Message msg, string username);
205                 [NoAccessorMethod]
206                 public Soup.AuthDomainFilter filter { owned get; set; }
207                 [NoAccessorMethod]
208                 public void* filter_data { get; set; }
209                 [NoAccessorMethod]
210                 public Soup.AuthDomainGenericAuthCallback generic_auth_callback { owned get; set; }
211                 [NoAccessorMethod]
212                 public void* generic_auth_data { get; set; }
213                 [NoAccessorMethod]
214                 public bool proxy { get; construct; }
215                 public string realm { get; construct; }
216         }
217         [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_auth_domain_basic_get_type ()")]
218         public class AuthDomainBasic : Soup.AuthDomain {
219                 [CCode (has_construct_function = false, type = "SoupAuthDomain*")]
220                 public AuthDomainBasic (string optname1, ...);
221                 public void set_auth_callback (owned Soup.AuthDomainBasicAuthCallback callback);
222                 [NoAccessorMethod]
223                 public Soup.AuthDomainBasicAuthCallback auth_callback { owned get; set; }
224                 [NoAccessorMethod]
225                 public void* auth_data { get; set; }
226         }
227         [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_auth_domain_digest_get_type ()")]
228         public class AuthDomainDigest : Soup.AuthDomain {
229                 [CCode (has_construct_function = false, type = "SoupAuthDomain*")]
230                 public AuthDomainDigest (string optname1, ...);
231                 public static string encode_password (string username, string realm, string password);
232                 public void set_auth_callback (owned Soup.AuthDomainDigestAuthCallback callback);
233                 [NoAccessorMethod]
234                 public Soup.AuthDomainDigestAuthCallback auth_callback { owned get; set; }
235                 [NoAccessorMethod]
236                 public void* auth_data { get; set; }
237         }
238         [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_auth_manager_get_type ()")]
239         public class AuthManager : GLib.Object, Soup.SessionFeature {
240                 [CCode (has_construct_function = false)]
241                 protected AuthManager ();
242                 [Version (since = "2.58")]
243                 public void clear_cached_credentials ();
244                 [Version (since = "2.42")]
245                 public void use_auth (Soup.URI uri, Soup.Auth auth);
246                 public virtual signal void authenticate (Soup.Message msg, Soup.Auth auth, bool retrying);
247         }
248         [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_auth_ntlm_get_type ()")]
249         public class AuthNTLM : Soup.Auth {
250                 [CCode (has_construct_function = false)]
251                 protected AuthNTLM ();
252         }
253         [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_auth_negotiate_get_type ()")]
254         public class AuthNegotiate : Soup.Auth {
255                 [CCode (has_construct_function = false)]
256                 protected AuthNegotiate ();
257                 [Version (since = "2.54")]
258                 public static bool supported ();
259         }
260         [CCode (cheader_filename = "libsoup/soup.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "soup_buffer_get_type ()")]
261         [Compact]
262         public class Buffer {
263                 [CCode (array_length_cname = "length", array_length_type = "gsize")]
264                 public uint8[] data;
265                 public size_t length;
266                 [CCode (has_construct_function = false)]
267                 [Version (deprecated = true, deprecated_since = "2.32", replacement = "Buffer.take")]
268                 public Buffer (Soup.MemoryUse use, [CCode (array_length_cname = "length", array_length_pos = 2.1, array_length_type = "gsize")] uint8[] data);
269                 public Soup.Buffer copy ();
270                 public void free ();
271                 [Version (since = "2.40")]
272                 public GLib.Bytes get_as_bytes ();
273                 [Version (since = "2.32")]
274                 public void get_data ([CCode (array_length_cname = "length", array_length_pos = 1.1, array_length_type = "gsize")] out unowned uint8[] data);
275                 public void* get_owner ();
276                 [CCode (has_construct_function = false)]
277                 public Buffer.subbuffer (Soup.Buffer parent, size_t offset, size_t length);
278                 [CCode (has_construct_function = false)]
279                 [Version (since = "2.32")]
280                 public Buffer.take ([CCode (array_length_cname = "length", array_length_pos = 1.1, array_length_type = "gsize")] owned uint8[] data);
281                 [CCode (has_construct_function = false)]
282                 public Buffer.with_owner ([CCode (array_length_cname = "length", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] data, void* owner, GLib.DestroyNotify? owner_dnotify);
283         }
284         [CCode (cheader_filename = "libsoup/soup.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "soup_byte_array_get_type ()")]
285         [Compact]
286         public class ByteArray {
287         }
288         [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_cache_get_type ()")]
289         public class Cache : GLib.Object, Soup.SessionFeature {
290                 [CCode (has_construct_function = false)]
291                 [Version (since = "2.34")]
292                 public Cache (string? cache_dir, Soup.CacheType cache_type);
293                 [Version (since = "2.34")]
294                 public void clear ();
295                 [Version (since = "2.34.")]
296                 public void dump ();
297                 [Version (since = "2.34")]
298                 public void flush ();
299                 [NoWrapper]
300                 public virtual Soup.Cacheability get_cacheability (Soup.Message msg);
301                 [Version (since = "2.34")]
302                 public uint get_max_size ();
303                 [Version (since = "2.34")]
304                 public void load ();
305                 [Version (since = "2.34")]
306                 public void set_max_size (uint max_size);
307                 [NoAccessorMethod]
308                 public string cache_dir { owned get; construct; }
309                 [NoAccessorMethod]
310                 public Soup.CacheType cache_type { get; construct; }
311         }
312         [CCode (cheader_filename = "libsoup/soup.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "soup_client_context_get_type ()")]
313         [Compact]
314         public class ClientContext {
315                 [Version (deprecated = true)]
316                 public unowned Soup.Address? get_address ();
317                 public unowned Soup.AuthDomain? get_auth_domain ();
318                 public unowned string? get_auth_user ();
319                 [Version (since = "2.48")]
320                 public unowned GLib.Socket? get_gsocket ();
321                 public unowned string? get_host ();
322                 [Version (since = "2.48")]
323                 public unowned GLib.SocketAddress? get_local_address ();
324                 [Version (since = "2.48")]
325                 public unowned GLib.SocketAddress? get_remote_address ();
326                 [Version (deprecated = true)]
327                 public unowned Soup.Socket get_socket ();
328                 [Version (since = "2.50")]
329                 public GLib.IOStream steal_connection ();
330         }
331         [CCode (cheader_filename = "libsoup/soup.h", has_type_id = false)]
332         [Compact]
333         public class Connection {
334         }
335         [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_content_decoder_get_type ()")]
336         public class ContentDecoder : GLib.Object, Soup.SessionFeature {
337                 [CCode (has_construct_function = false)]
338                 protected ContentDecoder ();
339         }
340         [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_content_sniffer_get_type ()")]
341         public class ContentSniffer : GLib.Object, Soup.SessionFeature {
342                 [CCode (has_construct_function = false)]
343                 [Version (since = "2.28")]
344                 public ContentSniffer ();
345                 [Version (since = "2.28")]
346                 public virtual size_t get_buffer_size ();
347                 [Version (since = "2.28")]
348                 public virtual string sniff (Soup.Message msg, Soup.Buffer buffer, out GLib.HashTable<string,string>? @params);
349         }
350         [CCode (cheader_filename = "libsoup/soup.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "soup_cookie_get_type ()")]
351         [Compact]
352         [Version (since = "2.24")]
353         public class Cookie {
354                 public weak string domain;
355                 public weak Soup.Date expires;
356                 public bool http_only;
357                 public weak string name;
358                 public weak string path;
359                 public bool secure;
360                 public weak string value;
361                 [CCode (has_construct_function = false)]
362                 public Cookie (string name, string value, string domain, string path, int max_age);
363                 public bool applies_to_uri (Soup.URI uri);
364                 public Soup.Cookie copy ();
365                 [Version (since = "2.30")]
366                 public bool domain_matches (string host);
367                 public bool equal (Soup.Cookie cookie2);
368                 public void free ();
369                 [Version (since = "2.32")]
370                 public unowned string get_domain ();
371                 [Version (since = "2.32")]
372                 public unowned Soup.Date? get_expires ();
373                 [Version (since = "2.32")]
374                 public bool get_http_only ();
375                 [Version (since = "2.32")]
376                 public unowned string get_name ();
377                 [Version (since = "2.32")]
378                 public unowned string get_path ();
379                 [Version (since = "2.32")]
380                 public bool get_secure ();
381                 [Version (since = "2.32")]
382                 public unowned string get_value ();
383                 public static Soup.Cookie? parse (string header, Soup.URI origin);
384                 public void set_domain (string domain);
385                 public void set_expires (Soup.Date expires);
386                 public void set_http_only (bool http_only);
387                 public void set_max_age (int max_age);
388                 public void set_name (string name);
389                 public void set_path (string path);
390                 public void set_secure (bool secure);
391                 public void set_value (string value);
392                 public string to_cookie_header ();
393                 public string to_set_cookie_header ();
394         }
395         [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_cookie_jar_get_type ()")]
396         public class CookieJar : GLib.Object, Soup.SessionFeature {
397                 [CCode (has_construct_function = false)]
398                 [Version (since = "2.24")]
399                 public CookieJar ();
400                 [Version (since = "2.26")]
401                 public void add_cookie (owned Soup.Cookie cookie);
402                 [Version (since = "2.40")]
403                 public void add_cookie_with_first_party (Soup.URI first_party, owned Soup.Cookie cookie);
404                 [Version (since = "2.26")]
405                 public GLib.SList<Soup.Cookie> all_cookies ();
406                 [Version (since = "2.26")]
407                 public void delete_cookie (Soup.Cookie cookie);
408                 [Version (since = "2.30")]
409                 public Soup.CookieJarAcceptPolicy get_accept_policy ();
410                 [Version (since = "2.40")]
411                 public GLib.SList<Soup.Cookie> get_cookie_list (Soup.URI uri, bool for_http);
412                 [Version (since = "2.24")]
413                 public string? get_cookies (Soup.URI uri, bool for_http);
414                 [Version (since = "2.40")]
415                 public virtual bool is_persistent ();
416                 [Version (deprecated = true, since = "2.24")]
417                 public virtual void save ();
418                 [Version (since = "2.30")]
419                 public void set_accept_policy (Soup.CookieJarAcceptPolicy policy);
420                 [Version (since = "2.24")]
421                 public void set_cookie (Soup.URI uri, string cookie);
422                 [Version (since = "2.30")]
423                 public void set_cookie_with_first_party (Soup.URI uri, Soup.URI first_party, string cookie);
424                 [Version (since = "2.30")]
425                 public Soup.CookieJarAcceptPolicy accept_policy { get; set; }
426                 [NoAccessorMethod]
427                 public bool read_only { get; construct; }
428                 public virtual signal void changed (Soup.Cookie old_cookie, Soup.Cookie new_cookie);
429         }
430         [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_cookie_jar_db_get_type ()")]
431         public class CookieJarDB : Soup.CookieJar, Soup.SessionFeature {
432                 [CCode (has_construct_function = false, type = "SoupCookieJar*")]
433                 [Version (since = "2.42")]
434                 public CookieJarDB (string filename, bool read_only);
435                 [NoAccessorMethod]
436                 public string filename { owned get; construct; }
437         }
438         [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_cookie_jar_text_get_type ()")]
439         public class CookieJarText : Soup.CookieJar, Soup.SessionFeature {
440                 [CCode (has_construct_function = false, type = "SoupCookieJar*")]
441                 [Version (since = "2.26")]
442                 public CookieJarText (string filename, bool read_only);
443                 [NoAccessorMethod]
444                 public string filename { owned get; construct; }
445         }
446         [CCode (cheader_filename = "libsoup/soup.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "soup_date_get_type ()")]
447         [Compact]
448         public class Date {
449                 public int day;
450                 public int hour;
451                 public int minute;
452                 public int month;
453                 public int offset;
454                 public int second;
455                 public bool utc;
456                 public int year;
457                 [CCode (has_construct_function = false)]
458                 public Date (int year, int month, int day, int hour, int minute, int second);
459                 [Version (since = "2.24")]
460                 public Soup.Date copy ();
461                 [Version (since = "2.24")]
462                 public void free ();
463                 [CCode (has_construct_function = false)]
464                 public Date.from_now (int offset_seconds);
465                 [CCode (has_construct_function = false)]
466                 public Date.from_string (string date_string);
467                 [CCode (has_construct_function = false)]
468                 public Date.from_time_t ([CCode (type = "time_t")] time_t when);
469                 [Version (since = "2.32")]
470                 public int get_day ();
471                 [Version (since = "2.32")]
472                 public int get_hour ();
473                 [Version (since = "2.32")]
474                 public int get_minute ();
475                 [Version (since = "2.32")]
476                 public int get_month ();
477                 [Version (since = "2.32")]
478                 public int get_offset ();
479                 [Version (since = "2.32")]
480                 public int get_second ();
481                 [Version (since = "2.32")]
482                 public int get_utc ();
483                 [Version (since = "2.32")]
484                 public int get_year ();
485                 [Version (since = "2.24")]
486                 public bool is_past ();
487                 public string to_string (Soup.DateFormat format);
488                 public time_t to_time_t ();
489                 [Version (since = "2.24")]
490                 public GLib.TimeVal to_timeval ();
491         }
492         [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_logger_get_type ()")]
493         public class Logger : GLib.Object, Soup.SessionFeature {
494                 [CCode (has_construct_function = false)]
495                 public Logger (Soup.LoggerLogLevel level, int max_body_size);
496                 public void set_printer (owned Soup.LoggerPrinter printer);
497                 public void set_request_filter (owned Soup.LoggerFilter request_filter);
498                 public void set_response_filter (owned Soup.LoggerFilter response_filter);
499                 [NoAccessorMethod]
500                 [Version (since = "2.56")]
501                 public Soup.LoggerLogLevel level { get; set; }
502                 [NoAccessorMethod]
503                 [Version (since = "2.56")]
504                 public int max_body_size { get; set; }
505         }
506         [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_message_get_type ()")]
507         public class Message : GLib.Object {
508                 public weak Soup.MessageBody request_body;
509                 public weak Soup.MessageHeaders request_headers;
510                 public weak Soup.MessageBody response_body;
511                 public weak Soup.MessageHeaders response_headers;
512                 [CCode (has_construct_function = false)]
513                 public Message (string method, string uri_string);
514                 public uint add_header_handler (string @signal, string header, GLib.Callback callback);
515                 public uint add_status_code_handler (string @signal, uint status_code, GLib.Callback callback);
516                 [Version (since = "2.28")]
517                 public void disable_feature (GLib.Type feature_type);
518                 [CCode (has_construct_function = false)]
519                 public Message.from_uri (string method, Soup.URI uri);
520                 [Version (since = "2.26")]
521                 public unowned Soup.Address get_address ();
522                 [Version (since = "2.30")]
523                 public unowned Soup.URI get_first_party ();
524                 public Soup.MessageFlags get_flags ();
525                 public Soup.HTTPVersion get_http_version ();
526                 [Version (since = "2.34")]
527                 public bool get_https_status (out unowned GLib.TlsCertificate certificate, out GLib.TlsCertificateFlags errors);
528                 [Version (since = "2.44")]
529                 public Soup.MessagePriority get_priority ();
530                 [Version (since = "2.42")]
531                 public unowned Soup.Request get_soup_request ();
532                 public unowned Soup.URI get_uri ();
533                 public bool is_keepalive ();
534                 [Version (deprecated = true)]
535                 public void set_chunk_allocator (owned Soup.ChunkAllocator allocator);
536                 [Version (since = "2.30")]
537                 public void set_first_party (Soup.URI first_party);
538                 public void set_flags (Soup.MessageFlags flags);
539                 public void set_http_version (Soup.HTTPVersion version);
540                 [Version (since = "2.44")]
541                 public void set_priority (Soup.MessagePriority priority);
542                 [Version (since = "2.38")]
543                 public void set_redirect (uint status_code, string redirect_uri);
544                 public void set_request (string? content_type, Soup.MemoryUse req_use, [CCode (array_length_cname = "req_length", array_length_pos = 3.1, array_length_type = "gsize")] uint8[] req_body);
545                 public void set_response (string? content_type, Soup.MemoryUse resp_use, [CCode (array_length_cname = "resp_length", array_length_pos = 3.1, array_length_type = "gsize")] uint8[]? resp_body);
546                 public void set_status (uint status_code);
547                 public void set_status_full (uint status_code, string reason_phrase);
548                 public void set_uri (Soup.URI uri);
549                 [Version (since = "2.30")]
550                 public Soup.URI first_party { get; set; }
551                 public Soup.MessageFlags flags { get; set; }
552                 public Soup.HTTPVersion http_version { get; set; }
553                 [NoAccessorMethod]
554                 public string method { owned get; set; }
555                 public Soup.MessagePriority priority { get; set; }
556                 [NoAccessorMethod]
557                 public string reason_phrase { owned get; set; }
558                 [NoAccessorMethod]
559                 public bool server_side { get; construct; }
560                 [NoAccessorMethod]
561                 public uint status_code { get; set; }
562                 [NoAccessorMethod]
563                 [Version (since = "2.34")]
564                 public GLib.TlsCertificate tls_certificate { owned get; set; }
565                 [NoAccessorMethod]
566                 [Version (since = "2.34")]
567                 public GLib.TlsCertificateFlags tls_errors { get; set; }
568                 public Soup.URI uri { get; set; }
569                 [HasEmitter]
570                 [Version (since = "2.28")]
571                 public signal void content_sniffed (string content_type, GLib.HashTable<string,string> @params);
572                 [HasEmitter]
573                 public virtual signal void finished ();
574                 [HasEmitter]
575                 public virtual signal void got_body ();
576                 [HasEmitter]
577                 public virtual signal void got_chunk (Soup.Buffer chunk);
578                 [HasEmitter]
579                 public virtual signal void got_headers ();
580                 [HasEmitter]
581                 public virtual signal void got_informational ();
582                 [Version (since = "2.38")]
583                 public signal void network_event (GLib.SocketClientEvent event, GLib.IOStream connection);
584                 [HasEmitter]
585                 public virtual signal void restarted ();
586                 [HasEmitter]
587                 [Version (since = "2.50")]
588                 public virtual signal void starting ();
589                 [HasEmitter]
590                 public virtual signal void wrote_body ();
591                 [HasEmitter]
592                 [Version (since = "2.24")]
593                 public signal void wrote_body_data (Soup.Buffer chunk);
594                 [HasEmitter]
595                 public virtual signal void wrote_chunk ();
596                 [HasEmitter]
597                 public virtual signal void wrote_headers ();
598                 [HasEmitter]
599                 public virtual signal void wrote_informational ();
600         }
601         [CCode (cheader_filename = "libsoup/soup.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "soup_message_body_get_type ()")]
602         [Compact]
603         public class MessageBody {
604                 [CCode (array_length_cname = "length", array_length_type = "gint64")]
605                 public uint8[] data;
606                 public int64 length;
607                 [CCode (has_construct_function = false)]
608                 public MessageBody ();
609                 [Version (deprecated = true, deprecated_since = "2.32", replacement = "MessageBody.append_take")]
610                 public void append (Soup.MemoryUse use, [CCode (array_length_cname = "length", array_length_pos = 2.1, array_length_type = "gsize")] uint8[] data);
611                 public void append_buffer (Soup.Buffer buffer);
612                 [Version (since = "2.32")]
613                 public void append_take ([CCode (array_length_cname = "length", array_length_pos = 1.1, array_length_type = "gsize")] owned uint8[] data);
614                 public void complete ();
615                 public Soup.Buffer flatten ();
616                 public void free ();
617                 [Version (since = "2.24")]
618                 public bool get_accumulate ();
619                 public Soup.Buffer? get_chunk (int64 offset);
620                 [Version (since = "2.24")]
621                 public void got_chunk (Soup.Buffer chunk);
622                 [Version (since = "2.24")]
623                 public void set_accumulate (bool accumulate);
624                 public void truncate ();
625                 [Version (since = "2.24")]
626                 public void wrote_chunk (Soup.Buffer chunk);
627         }
628         [CCode (cheader_filename = "libsoup/soup.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "soup_message_headers_get_type ()")]
629         [Compact]
630         public class MessageHeaders {
631                 [CCode (has_construct_function = false)]
632                 public MessageHeaders (Soup.MessageHeadersType type);
633                 public void append (string name, string value);
634                 [Version (since = "2.36")]
635                 public void clean_connection_headers ();
636                 public void clear ();
637                 public void @foreach (Soup.MessageHeadersForeachFunc func);
638                 public void free ();
639                 [Version (since = "2.26")]
640                 public void free_ranges (Soup.Range ranges);
641                 [Version (deprecated = true)]
642                 public unowned string? @get (string name);
643                 [Version (since = "2.26")]
644                 public bool get_content_disposition (out string disposition, out GLib.HashTable<string,string> @params);
645                 public int64 get_content_length ();
646                 [Version (since = "2.26")]
647                 public bool get_content_range (out int64 start, out int64 end, out int64 total_length);
648                 [Version (since = "2.26")]
649                 public unowned string? get_content_type (out GLib.HashTable<string,string> @params);
650                 public Soup.Encoding get_encoding ();
651                 public Soup.Expectation get_expectations ();
652                 [Version (since = "2.50")]
653                 public Soup.MessageHeadersType get_headers_type ();
654                 [Version (since = "2.28")]
655                 public unowned string? get_list (string name);
656                 [Version (since = "2.28")]
657                 public unowned string? get_one (string name);
658                 [Version (since = "2.26")]
659                 public bool get_ranges (int64 total_length, [CCode (array_length_cname = "length", array_length_pos = 2.1)] out Soup.Range[] ranges);
660                 [Version (since = "2.50")]
661                 public bool header_contains (string name, string token);
662                 [Version (since = "2.50")]
663                 public bool header_equals (string name, string value);
664                 public void remove (string name);
665                 public void replace (string name, string value);
666                 [Version (since = "2.26")]
667                 public void set_content_disposition (string disposition, GLib.HashTable<string,string>? @params);
668                 public void set_content_length (int64 content_length);
669                 [Version (since = "2.26")]
670                 public void set_content_range (int64 start, int64 end, int64 total_length);
671                 [Version (since = "2.26")]
672                 public void set_content_type (string content_type, GLib.HashTable<string,string>? @params);
673                 public void set_encoding (Soup.Encoding encoding);
674                 public void set_expectations (Soup.Expectation expectations);
675                 [Version (since = "2.26")]
676                 public void set_range (int64 start, int64 end);
677                 [Version (since = "2.26")]
678                 public void set_ranges (Soup.Range ranges, int length);
679         }
680         [CCode (cheader_filename = "libsoup/soup.h", has_type_id = false)]
681         [Compact]
682         public class MessageQueue {
683         }
684         [CCode (cheader_filename = "libsoup/soup.h", has_type_id = false)]
685         [Compact]
686         public class MessageQueueItem {
687         }
688         [CCode (cheader_filename = "libsoup/soup.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "soup_multipart_get_type ()")]
689         [Compact]
690         [Version (since = "2.26")]
691         public class Multipart {
692                 [CCode (has_construct_function = false)]
693                 public Multipart (string mime_type);
694                 public void append_form_file (string control_name, string filename, string content_type, Soup.Buffer body);
695                 public void append_form_string (string control_name, string data);
696                 public void append_part (Soup.MessageHeaders headers, Soup.Buffer body);
697                 public void free ();
698                 [CCode (has_construct_function = false)]
699                 public Multipart.from_message (Soup.MessageHeaders headers, Soup.MessageBody body);
700                 public int get_length ();
701                 public bool get_part (int part, out unowned Soup.MessageHeaders headers, out unowned Soup.Buffer body);
702                 public void to_message (Soup.MessageHeaders dest_headers, Soup.MessageBody dest_body);
703         }
704         [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_multipart_input_stream_get_type ()")]
705         public class MultipartInputStream : GLib.FilterInputStream, GLib.PollableInputStream {
706                 [CCode (has_construct_function = false)]
707                 [Version (since = "2.40")]
708                 public MultipartInputStream (Soup.Message msg, GLib.InputStream base_stream);
709                 [Version (since = "2.40")]
710                 public unowned Soup.MessageHeaders? get_headers ();
711                 [Version (since = "2.40")]
712                 public GLib.InputStream? next_part (GLib.Cancellable? cancellable = null) throws GLib.Error;
713                 [Version (since = "2.40")]
714                 public async GLib.InputStream? next_part_async (int io_priority, GLib.Cancellable? cancellable) throws GLib.Error;
715                 [NoAccessorMethod]
716                 public Soup.Message message { owned get; construct; }
717         }
718         [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_proxy_resolver_default_get_type ()")]
719         public class ProxyResolverDefault : GLib.Object, Soup.ProxyURIResolver, Soup.SessionFeature {
720                 [CCode (has_construct_function = false)]
721                 protected ProxyResolverDefault ();
722                 [NoAccessorMethod]
723                 public GLib.ProxyResolver gproxy_resolver { set; }
724         }
725         [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_request_get_type ()")]
726         [Version (since = "2.42")]
727         public class Request : GLib.Object, GLib.Initable {
728                 [CCode (has_construct_function = false)]
729                 protected Request ();
730                 [NoWrapper]
731                 public virtual bool check_uri (Soup.URI uri) throws GLib.Error;
732                 public virtual int64 get_content_length ();
733                 public virtual unowned string? get_content_type ();
734                 public unowned Soup.Session get_session ();
735                 public unowned Soup.URI get_uri ();
736                 public virtual GLib.InputStream send (GLib.Cancellable? cancellable = null) throws GLib.Error;
737                 public virtual async GLib.InputStream send_async (GLib.Cancellable? cancellable) throws GLib.Error;
738                 public Soup.Session session { get; construct; }
739                 public Soup.URI uri { get; construct; }
740         }
741         [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_request_data_get_type ()")]
742         public class RequestData : Soup.Request, GLib.Initable {
743                 [CCode (has_construct_function = false)]
744                 protected RequestData ();
745         }
746         [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_request_file_get_type ()")]
747         public class RequestFile : Soup.Request, GLib.Initable {
748                 [CCode (has_construct_function = false)]
749                 protected RequestFile ();
750                 [Version (since = "2.40")]
751                 public GLib.File get_file ();
752         }
753         [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_request_http_get_type ()")]
754         public class RequestHTTP : Soup.Request, GLib.Initable {
755                 [CCode (has_construct_function = false)]
756                 protected RequestHTTP ();
757                 [Version (since = "2.40")]
758                 public Soup.Message get_message ();
759         }
760         [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_requester_get_type ()")]
761         [Version (deprecated = true, deprecated_since = "2.42", replacement = "Session")]
762         public class Requester : GLib.Object, Soup.SessionFeature {
763                 [CCode (has_construct_function = false)]
764                 public Requester ();
765                 public Soup.Request request (string uri_string) throws GLib.Error;
766                 public Soup.Request request_uri (Soup.URI uri) throws GLib.Error;
767         }
768         [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_server_get_type ()")]
769         public class Server : GLib.Object {
770                 [CCode (has_construct_function = false)]
771                 public Server (string optname1, ...);
772                 [Version (since = "2.50")]
773                 public bool accept_iostream (GLib.IOStream stream, GLib.SocketAddress? local_addr, GLib.SocketAddress? remote_addr) throws GLib.Error;
774                 public void add_auth_domain (Soup.AuthDomain auth_domain);
775                 [Version (since = "2.50")]
776                 public void add_early_handler (string? path, owned Soup.ServerCallback callback);
777                 public void add_handler (string? path, owned Soup.ServerCallback callback);
778                 public void add_websocket_handler (string? path, string? origin, [CCode (array_length = false, array_null_terminated = true)] string[]? protocols, owned Soup.ServerWebsocketCallback callback);
779                 public void disconnect ();
780                 [Version (deprecated = true)]
781                 public unowned GLib.MainContext? get_async_context ();
782                 [Version (deprecated = true)]
783                 public unowned Soup.Socket get_listener ();
784                 public GLib.SList<weak GLib.Socket> get_listeners ();
785                 [Version (deprecated = true)]
786                 public uint get_port ();
787                 [Version (since = "2.48")]
788                 public GLib.SList<Soup.URI> get_uris ();
789                 public bool is_https ();
790                 [Version (since = "2.48")]
791                 public bool listen (GLib.SocketAddress address, Soup.ServerListenOptions options) throws GLib.Error;
792                 [Version (since = "2.48")]
793                 public bool listen_all (uint port, Soup.ServerListenOptions options) throws GLib.Error;
794                 [Version (since = "2.48")]
795                 public bool listen_fd (int fd, Soup.ServerListenOptions options) throws GLib.Error;
796                 [Version (since = "2.48")]
797                 public bool listen_local (uint port, Soup.ServerListenOptions options) throws GLib.Error;
798                 [Version (since = "2.48")]
799                 public bool listen_socket (GLib.Socket socket, Soup.ServerListenOptions options) throws GLib.Error;
800                 public void pause_message (Soup.Message msg);
801                 [Version (deprecated = true)]
802                 public void quit ();
803                 public void remove_auth_domain (Soup.AuthDomain auth_domain);
804                 public void remove_handler (string path);
805                 [Version (deprecated = true)]
806                 public void run ();
807                 [Version (deprecated = true)]
808                 public void run_async ();
809                 [Version (since = "2.48")]
810                 public bool set_ssl_cert_file (string ssl_cert_file, string ssl_key_file) throws GLib.Error;
811                 public void unpause_message (Soup.Message msg);
812                 [Version (deprecated = true)]
813                 public GLib.MainContext async_context { get; owned construct; }
814                 [CCode (array_length = false, array_null_terminated = true)]
815                 [NoAccessorMethod]
816                 [Version (since = "2.44")]
817                 public string[] http_aliases { owned get; set; }
818                 [CCode (array_length = false, array_null_terminated = true)]
819                 [NoAccessorMethod]
820                 [Version (since = "2.44")]
821                 public string[] https_aliases { owned get; set; }
822                 [NoAccessorMethod]
823                 [Version (deprecated = true)]
824                 public Soup.Address @interface { owned get; construct; }
825                 [Version (deprecated = true)]
826                 public uint port { get; construct; }
827                 [NoAccessorMethod]
828                 public bool raw_paths { get; construct; }
829                 [NoAccessorMethod]
830                 public string server_header { owned get; set construct; }
831                 [NoAccessorMethod]
832                 [Version (deprecated = true)]
833                 public string ssl_cert_file { owned get; construct; }
834                 [NoAccessorMethod]
835                 [Version (deprecated = true)]
836                 public string ssl_key_file { owned get; construct; }
837                 [NoAccessorMethod]
838                 [Version (since = "2.38")]
839                 public GLib.TlsCertificate tls_certificate { owned get; construct; }
840                 public virtual signal void request_aborted (Soup.Message msg, Soup.ClientContext client);
841                 public virtual signal void request_finished (Soup.Message msg, Soup.ClientContext client);
842                 public virtual signal void request_read (Soup.Message msg, Soup.ClientContext client);
843                 public virtual signal void request_started (Soup.Message msg, Soup.ClientContext client);
844         }
845         [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_session_get_type ()")]
846         public class Session : GLib.Object {
847                 [CCode (has_construct_function = false)]
848                 [Version (since = "2.42")]
849                 public Session ();
850                 public void abort ();
851                 [Version (since = "2.24")]
852                 public void add_feature (Soup.SessionFeature feature);
853                 [Version (since = "2.24")]
854                 public void add_feature_by_type (GLib.Type feature_type);
855                 [NoWrapper]
856                 public virtual void auth_required (Soup.Message msg, Soup.Auth auth, bool retrying);
857                 public virtual void cancel_message (Soup.Message msg, uint status_code);
858                 [Version (since = "2.62")]
859                 public async GLib.IOStream connect_async (Soup.URI uri, GLib.Cancellable? cancellable, [CCode (scope = "async")] Soup.SessionConnectProgressCallback? progress_callback) throws GLib.Error;
860                 [NoWrapper]
861                 public virtual void flush_queue ();
862                 public unowned GLib.MainContext? get_async_context ();
863                 [Version (since = "2.26")]
864                 public unowned Soup.SessionFeature? get_feature (GLib.Type feature_type);
865                 [Version (since = "2.28")]
866                 public unowned Soup.SessionFeature? get_feature_for_message (GLib.Type feature_type, Soup.Message msg);
867                 [Version (since = "2.26")]
868                 public GLib.SList<Soup.SessionFeature> get_features (GLib.Type feature_type);
869                 [Version (since = "2.42")]
870                 public bool has_feature (GLib.Type feature_type);
871                 [NoWrapper]
872                 public virtual void kick ();
873                 public void pause_message (Soup.Message msg);
874                 [Version (since = "2.38")]
875                 public void prefetch_dns (string hostname, GLib.Cancellable? cancellable, [CCode (scope = "async")] Soup.AddressCallback? callback);
876                 [Version (deprecated = true, deprecated_since = "2.38", since = "2.30")]
877                 public void prepare_for_uri (Soup.URI uri);
878                 public virtual void queue_message (owned Soup.Message msg, [CCode (scope = "async")] Soup.SessionCallback? callback);
879                 [Version (since = "2.38")]
880                 public bool redirect_message (Soup.Message msg);
881                 [Version (since = "2.24")]
882                 public void remove_feature (Soup.SessionFeature feature);
883                 [Version (since = "2.24")]
884                 public void remove_feature_by_type (GLib.Type feature_type);
885                 [Version (since = "2.42")]
886                 public Soup.Request request (string uri_string) throws GLib.Error;
887                 [Version (since = "2.42")]
888                 public Soup.RequestHTTP request_http (string method, string uri_string) throws GLib.Error;
889                 [Version (since = "2.42")]
890                 public Soup.RequestHTTP request_http_uri (string method, Soup.URI uri) throws GLib.Error;
891                 [Version (since = "2.42")]
892                 public Soup.Request request_uri (Soup.URI uri) throws GLib.Error;
893                 public virtual void requeue_message (Soup.Message msg);
894                 [Version (since = "2.42")]
895                 public GLib.InputStream send (Soup.Message msg, GLib.Cancellable? cancellable = null) throws GLib.Error;
896                 [Version (since = "2.42")]
897                 public async GLib.InputStream send_async (Soup.Message msg, GLib.Cancellable? cancellable = null) throws GLib.Error;
898                 public virtual uint send_message (Soup.Message msg);
899                 [Version (since = "2.50")]
900                 public GLib.IOStream steal_connection (Soup.Message msg);
901                 public void unpause_message (Soup.Message msg);
902                 [Version (since = "2.50")]
903                 public async Soup.WebsocketConnection websocket_connect_async (Soup.Message msg, string? origin, [CCode (array_length = false, array_null_terminated = true)] string[]? protocols, GLib.Cancellable? cancellable) throws GLib.Error;
904                 [CCode (has_construct_function = false)]
905                 [Version (since = "2.42")]
906                 public Session.with_options (string optname1, ...);
907                 [Version (since = "2.38")]
908                 public bool would_redirect (Soup.Message msg);
909                 [NoAccessorMethod]
910                 [Version (since = "2.30")]
911                 public string accept_language { owned get; set; }
912                 [NoAccessorMethod]
913                 [Version (since = "2.30")]
914                 public bool accept_language_auto { get; set; }
915                 public GLib.MainContext async_context { get; owned construct; }
916                 [CCode (array_length = false, array_null_terminated = true)]
917                 [NoAccessorMethod]
918                 [Version (since = "2.38")]
919                 public string[] http_aliases { owned get; set; }
920                 [CCode (array_length = false, array_null_terminated = true)]
921                 [NoAccessorMethod]
922                 [Version (since = "2.38")]
923                 public string[] https_aliases { owned get; set; }
924                 [NoAccessorMethod]
925                 [Version (since = "2.24")]
926                 public uint idle_timeout { get; set; }
927                 [NoAccessorMethod]
928                 [Version (since = "2.42")]
929                 public Soup.Address local_address { owned get; construct; }
930                 [NoAccessorMethod]
931                 public int max_conns { get; set; }
932                 [NoAccessorMethod]
933                 public int max_conns_per_host { get; set; }
934                 [NoAccessorMethod]
935                 [Version (since = "2.42")]
936                 public GLib.ProxyResolver proxy_resolver { owned get; set; }
937                 [NoAccessorMethod]
938                 public Soup.URI proxy_uri { owned get; set; }
939                 [NoAccessorMethod]
940                 [Version (deprecated = true)]
941                 public string ssl_ca_file { owned get; set; }
942                 [NoAccessorMethod]
943                 [Version (since = "2.30")]
944                 public bool ssl_strict { get; set; }
945                 [NoAccessorMethod]
946                 [Version (since = "2.38")]
947                 public bool ssl_use_system_ca_file { get; set; }
948                 [NoAccessorMethod]
949                 public uint timeout { get; set; }
950                 [NoAccessorMethod]
951                 [Version (since = "2.38")]
952                 public GLib.TlsDatabase tls_database { owned get; set; }
953                 [NoAccessorMethod]
954                 [Version (since = "2.48")]
955                 public GLib.TlsInteraction tls_interaction { owned get; set; }
956                 [NoAccessorMethod]
957                 [Version (deprecated = true)]
958                 public bool use_ntlm { get; set; }
959                 [NoAccessorMethod]
960                 [Version (since = "2.38")]
961                 public bool use_thread_context { get; set; }
962                 [NoAccessorMethod]
963                 public string user_agent { owned get; set; }
964                 public virtual signal void authenticate (Soup.Message msg, Soup.Auth auth, bool retrying);
965                 [Version (since = "2.30")]
966                 public signal void connection_created (GLib.Object connection);
967                 [Version (since = "2.24")]
968                 public signal void request_queued (Soup.Message msg);
969                 [Version (deprecated = true, deprecated_since = "2.50.")]
970                 public virtual signal void request_started (Soup.Message msg, Soup.Socket socket);
971                 [Version (since = "2.24")]
972                 public signal void request_unqueued (Soup.Message msg);
973                 [Version (since = "2.30")]
974                 public signal void tunneling (GLib.Object connection);
975         }
976         [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_session_async_get_type ()")]
977         public class SessionAsync : Soup.Session {
978                 [CCode (has_construct_function = false, type = "SoupSession*")]
979                 [Version (deprecated = true)]
980                 public SessionAsync ();
981                 [CCode (has_construct_function = false, type = "SoupSession*")]
982                 [Version (deprecated = true)]
983                 public SessionAsync.with_options (string optname1, ...);
984         }
985         [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_session_sync_get_type ()")]
986         public class SessionSync : Soup.Session {
987                 [CCode (has_construct_function = false, type = "SoupSession*")]
988                 [Version (deprecated = true)]
989                 public SessionSync ();
990                 [CCode (has_construct_function = false, type = "SoupSession*")]
991                 [Version (deprecated = true)]
992                 public SessionSync.with_options (string optname1, ...);
993         }
994         [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_socket_get_type ()")]
995         public class Socket : GLib.Object, GLib.Initable {
996                 [CCode (has_construct_function = false)]
997                 public Socket (string optname1, ...);
998                 public void connect_async (GLib.Cancellable? cancellable, [CCode (scope = "async")] Soup.SocketCallback callback);
999                 public uint connect_sync (GLib.Cancellable? cancellable = null);
1000                 public void disconnect ();
1001                 public int get_fd ();
1002                 public unowned Soup.Address get_local_address ();
1003                 public unowned Soup.Address get_remote_address ();
1004                 public bool is_connected ();
1005                 public bool is_ssl ();
1006                 public bool listen ();
1007                 public Soup.SocketIOStatus read ([CCode (array_length_cname = "len", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, out size_t nread, GLib.Cancellable? cancellable = null) throws GLib.Error;
1008                 public Soup.SocketIOStatus read_until ([CCode (array_length_cname = "len", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, void* boundary, size_t boundary_len, out size_t nread, bool got_boundary, GLib.Cancellable? cancellable = null) throws GLib.Error;
1009                 public bool start_proxy_ssl (string ssl_host, GLib.Cancellable? cancellable = null);
1010                 public bool start_ssl (GLib.Cancellable? cancellable = null);
1011                 public Soup.SocketIOStatus write ([CCode (array_length_cname = "len", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, out size_t nwrote, GLib.Cancellable? cancellable = null) throws GLib.Error;
1012                 [NoAccessorMethod]
1013                 public GLib.MainContext async_context { owned get; construct; }
1014                 public int fd { get; construct; }
1015                 [NoAccessorMethod]
1016                 public GLib.Socket gsocket { construct; }
1017                 [NoAccessorMethod]
1018                 public GLib.IOStream iostream { construct; }
1019                 [NoAccessorMethod]
1020                 public bool ipv6_only { get; set; }
1021                 [NoAccessorMethod]
1022                 public bool is_server { get; }
1023                 public Soup.Address local_address { get; construct; }
1024                 [NoAccessorMethod]
1025                 public bool non_blocking { get; set; }
1026                 public Soup.Address remote_address { get; construct; }
1027                 [NoAccessorMethod]
1028                 public void* ssl_creds { get; set; }
1029                 [NoAccessorMethod]
1030                 public bool ssl_fallback { get; construct; }
1031                 [NoAccessorMethod]
1032                 public bool ssl_strict { get; construct; }
1033                 [NoAccessorMethod]
1034                 public uint timeout { get; set; }
1035                 [NoAccessorMethod]
1036                 public GLib.TlsCertificate tls_certificate { owned get; }
1037                 [NoAccessorMethod]
1038                 public GLib.TlsCertificateFlags tls_errors { get; }
1039                 [NoAccessorMethod]
1040                 public bool trusted_certificate { get; }
1041                 [NoAccessorMethod]
1042                 [Version (since = "2.38")]
1043                 public bool use_thread_context { get; construct; }
1044                 public virtual signal void disconnected ();
1045                 [Version (since = "2.38")]
1046                 public signal void event (GLib.SocketClientEvent event, GLib.IOStream connection);
1047                 public virtual signal void new_connection (Soup.Socket new_sock);
1048                 public virtual signal void readable ();
1049                 public virtual signal void writable ();
1050         }
1051         [CCode (cheader_filename = "libsoup/soup.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "soup_uri_get_type ()")]
1052         [Compact]
1053         public class URI {
1054                 public weak string fragment;
1055                 public weak string host;
1056                 public weak string password;
1057                 public weak string path;
1058                 public uint port;
1059                 public weak string query;
1060                 public weak string scheme;
1061                 public weak string user;
1062                 [CCode (has_construct_function = false)]
1063                 public URI (string? uri_string);
1064                 public Soup.URI copy ();
1065                 [Version (since = "2.28")]
1066                 public Soup.URI copy_host ();
1067                 public static string decode (string part);
1068                 public static string encode (string part, string? escape_extra);
1069                 public bool equal (Soup.URI uri2);
1070                 public void free ();
1071                 [Version (since = "2.32")]
1072                 public unowned string get_fragment ();
1073                 [Version (since = "2.32")]
1074                 public unowned string get_host ();
1075                 [Version (since = "2.32")]
1076                 public unowned string get_password ();
1077                 [Version (since = "2.32")]
1078                 public unowned string get_path ();
1079                 [Version (since = "2.32")]
1080                 public uint get_port ();
1081                 [Version (since = "2.32")]
1082                 public unowned string get_query ();
1083                 [Version (since = "2.32")]
1084                 public unowned string get_scheme ();
1085                 [Version (since = "2.32")]
1086                 public unowned string get_user ();
1087                 [Version (since = "2.28")]
1088                 public bool host_equal (Soup.URI v2);
1089                 [Version (since = "2.28")]
1090                 public uint host_hash ();
1091                 public static string normalize (string part, string? unescape_extra);
1092                 public void set_fragment (string? fragment);
1093                 public void set_host (string? host);
1094                 public void set_password (string? password);
1095                 public void set_path (string path);
1096                 public void set_port (uint port);
1097                 public void set_query (string? query);
1098                 public void set_query_from_fields (...);
1099                 public void set_query_from_form (GLib.HashTable<string,string> form);
1100                 public void set_scheme (string scheme);
1101                 public void set_user (string? user);
1102                 public string to_string (bool just_path_and_query);
1103                 public bool uses_default_port ();
1104                 [CCode (has_construct_function = false)]
1105                 public URI.with_base (Soup.URI @base, string uri_string);
1106         }
1107         [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_websocket_connection_get_type ()")]
1108         [Version (since = "2.50")]
1109         public class WebsocketConnection : GLib.Object {
1110                 [CCode (has_construct_function = false)]
1111                 public WebsocketConnection (GLib.IOStream stream, Soup.URI uri, Soup.WebsocketConnectionType type, string? origin, string? protocol);
1112                 public void close (ushort code, string? data);
1113                 public ushort get_close_code ();
1114                 public unowned string get_close_data ();
1115                 public Soup.WebsocketConnectionType get_connection_type ();
1116                 public unowned GLib.IOStream get_io_stream ();
1117                 [Version (since = "2.58")]
1118                 public uint get_keepalive_interval ();
1119                 [Version (since = "2.56")]
1120                 public uint64 get_max_incoming_payload_size ();
1121                 public unowned string? get_origin ();
1122                 public unowned string? get_protocol ();
1123                 public Soup.WebsocketState get_state ();
1124                 public unowned Soup.URI get_uri ();
1125                 public void send_binary ([CCode (array_length_cname = "length", array_length_pos = 1.1, array_length_type = "gsize")] uint8[] data);
1126                 public void send_text (string text);
1127                 [Version (since = "2.58")]
1128                 public void set_keepalive_interval (uint interval);
1129                 [Version (since = "2.56")]
1130                 public void set_max_incoming_payload_size (uint64 max_incoming_payload_size);
1131                 public Soup.WebsocketConnectionType connection_type { get; construct; }
1132                 public GLib.IOStream io_stream { get; construct; }
1133                 [Version (since = "2.58")]
1134                 public uint keepalive_interval { get; set construct; }
1135                 [Version (since = "2.56")]
1136                 public uint64 max_incoming_payload_size { get; set construct; }
1137                 public string origin { get; construct; }
1138                 public string protocol { get; construct; }
1139                 public Soup.WebsocketState state { get; }
1140                 public Soup.URI uri { get; construct; }
1141                 public virtual signal void closed ();
1142                 public virtual signal void closing ();
1143                 public virtual signal void error (GLib.Error error);
1144                 public virtual signal void message (int type, GLib.Bytes message);
1145                 [Version (since = "2.60")]
1146                 public virtual signal void pong (GLib.Bytes message);
1147         }
1148         [CCode (cheader_filename = "libsoup/soup.h", has_type_id = false)]
1149         [Compact]
1150         [Version (since = "2.52")]
1151         public class XMLRPCParams {
1152                 public void free ();
1153                 public GLib.Variant parse (string? signature) throws GLib.Error;
1154         }
1155         [CCode (cheader_filename = "libsoup/soup.h", type_cname = "SoupPasswordManagerInterface", type_id = "soup_password_manager_get_type ()")]
1156         public interface PasswordManager : Soup.SessionFeature, GLib.Object {
1157                 public abstract void get_passwords_async (Soup.Message msg, Soup.Auth auth, bool retrying, GLib.MainContext async_context, GLib.Cancellable? cancellable, [CCode (scope = "async")] Soup.PasswordManagerCallback callback);
1158                 public abstract void get_passwords_sync (Soup.Message msg, Soup.Auth auth, GLib.Cancellable? cancellable = null);
1159         }
1160         [CCode (cheader_filename = "libsoup/soup.h", type_cname = "SoupProxyResolverInterface", type_id = "soup_proxy_resolver_get_type ()")]
1161         [Version (deprecated = true, deprecated_since = "2.28", replacement = "ProxyURIResolver")]
1162         public interface ProxyResolver : Soup.SessionFeature, GLib.Object {
1163                 public abstract void get_proxy_async (Soup.Message msg, GLib.MainContext async_context, GLib.Cancellable? cancellable, [CCode (scope = "async")] Soup.ProxyResolverCallback callback);
1164                 public abstract uint get_proxy_sync (Soup.Message msg, GLib.Cancellable? cancellable, out unowned Soup.Address addr);
1165         }
1166         [CCode (cheader_filename = "libsoup/soup.h", type_cname = "SoupProxyURIResolverInterface", type_id = "soup_proxy_uri_resolver_get_type ()")]
1167         public interface ProxyURIResolver : Soup.SessionFeature, GLib.Object {
1168                 [Version (deprecated = true, since = "2.26.3")]
1169                 public abstract void get_proxy_uri_async (Soup.URI uri, GLib.MainContext? async_context, GLib.Cancellable? cancellable, [CCode (scope = "async")] Soup.ProxyURIResolverCallback callback);
1170                 [Version (deprecated = true, since = "2.26.3")]
1171                 public abstract uint get_proxy_uri_sync (Soup.URI uri, GLib.Cancellable? cancellable, out Soup.URI proxy_uri);
1172         }
1173         [CCode (cheader_filename = "libsoup/soup.h", type_cname = "SoupSessionFeatureInterface", type_id = "soup_session_feature_get_type ()")]
1174         [Version (since = "2.24")]
1175         public interface SessionFeature : GLib.Object {
1176                 [Version (since = "2.34")]
1177                 public abstract bool add_feature (GLib.Type type);
1178                 public abstract void attach (Soup.Session session);
1179                 public abstract void detach (Soup.Session session);
1180                 [Version (since = "2.34")]
1181                 public abstract bool has_feature (GLib.Type type);
1182                 [Version (since = "2.34")]
1183                 public abstract bool remove_feature (GLib.Type type);
1184                 [NoWrapper]
1185                 public abstract void request_queued (Soup.Session session, Soup.Message msg);
1186                 [NoWrapper]
1187                 public abstract void request_started (Soup.Session session, Soup.Message msg, Soup.Socket socket);
1188                 [NoWrapper]
1189                 public abstract void request_unqueued (Soup.Session session, Soup.Message msg);
1190         }
1191         [CCode (cheader_filename = "libsoup/soup.h", has_type_id = false)]
1192         public struct MessageHeadersIter {
1193                 public static void init (out Soup.MessageHeadersIter iter, Soup.MessageHeaders hdrs);
1194                 public bool next (out unowned string name, out unowned string value);
1195         }
1196         [CCode (cheader_filename = "libsoup/soup.h", has_type_id = false)]
1197         [Version (since = "2.26")]
1198         public struct Range {
1199                 public int64 start;
1200                 public int64 end;
1201         }
1202         [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_ADDRESS_FAMILY_", type_id = "soup_address_family_get_type ()")]
1203         public enum AddressFamily {
1204                 INVALID,
1205                 IPV4,
1206                 IPV6
1207         }
1208         [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_CACHE_RESPONSE_", type_id = "soup_cache_response_get_type ()")]
1209         public enum CacheResponse {
1210                 FRESH,
1211                 NEEDS_VALIDATION,
1212                 STALE
1213         }
1214         [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_CACHE_", type_id = "soup_cache_type_get_type ()")]
1215         [Version (since = "2.34")]
1216         public enum CacheType {
1217                 SINGLE_USER,
1218                 SHARED
1219         }
1220         [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_CACHE_", type_id = "soup_cacheability_get_type ()")]
1221         [Flags]
1222         public enum Cacheability {
1223                 CACHEABLE,
1224                 UNCACHEABLE,
1225                 INVALIDATES,
1226                 VALIDATES
1227         }
1228         [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_CONNECTION_", type_id = "soup_connection_state_get_type ()")]
1229         public enum ConnectionState {
1230                 NEW,
1231                 CONNECTING,
1232                 IDLE,
1233                 IN_USE,
1234                 REMOTE_DISCONNECTED,
1235                 DISCONNECTED
1236         }
1237         [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_COOKIE_JAR_ACCEPT_", type_id = "soup_cookie_jar_accept_policy_get_type ()")]
1238         [Version (since = "2.30")]
1239         public enum CookieJarAcceptPolicy {
1240                 ALWAYS,
1241                 NEVER,
1242                 NO_THIRD_PARTY
1243         }
1244         [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_DATE_", type_id = "soup_date_format_get_type ()")]
1245         public enum DateFormat {
1246                 HTTP,
1247                 COOKIE,
1248                 RFC2822,
1249                 ISO8601_COMPACT,
1250                 ISO8601_FULL,
1251                 ISO8601,
1252                 ISO8601_XMLRPC
1253         }
1254         [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_ENCODING_", type_id = "soup_encoding_get_type ()")]
1255         public enum Encoding {
1256                 UNRECOGNIZED,
1257                 NONE,
1258                 CONTENT_LENGTH,
1259                 EOF,
1260                 CHUNKED,
1261                 BYTERANGES
1262         }
1263         [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_EXPECTATION_", type_id = "soup_expectation_get_type ()")]
1264         [Flags]
1265         public enum Expectation {
1266                 UNRECOGNIZED,
1267                 CONTINUE
1268         }
1269         [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_HTTP_", type_id = "soup_http_version_get_type ()")]
1270         public enum HTTPVersion {
1271                 @1_0,
1272                 @1_1
1273         }
1274         [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_KNOWN_STATUS_CODE_", type_id = "soup_known_status_code_get_type ()")]
1275         [Version (deprecated = true, deprecated_since = "2.44", replacement = "Status")]
1276         public enum KnownStatusCode {
1277                 NONE,
1278                 CANCELLED,
1279                 CANT_RESOLVE,
1280                 CANT_RESOLVE_PROXY,
1281                 CANT_CONNECT,
1282                 CANT_CONNECT_PROXY,
1283                 SSL_FAILED,
1284                 IO_ERROR,
1285                 MALFORMED,
1286                 TRY_AGAIN,
1287                 TOO_MANY_REDIRECTS,
1288                 TLS_FAILED,
1289                 CONTINUE,
1290                 SWITCHING_PROTOCOLS,
1291                 PROCESSING,
1292                 OK,
1293                 CREATED,
1294                 ACCEPTED,
1295                 NON_AUTHORITATIVE,
1296                 NO_CONTENT,
1297                 RESET_CONTENT,
1298                 PARTIAL_CONTENT,
1299                 MULTI_STATUS,
1300                 MULTIPLE_CHOICES,
1301                 MOVED_PERMANENTLY,
1302                 FOUND,
1303                 MOVED_TEMPORARILY,
1304                 SEE_OTHER,
1305                 NOT_MODIFIED,
1306                 USE_PROXY,
1307                 NOT_APPEARING_IN_THIS_PROTOCOL,
1308                 TEMPORARY_REDIRECT,
1309                 BAD_REQUEST,
1310                 UNAUTHORIZED,
1311                 PAYMENT_REQUIRED,
1312                 FORBIDDEN,
1313                 NOT_FOUND,
1314                 METHOD_NOT_ALLOWED,
1315                 NOT_ACCEPTABLE,
1316                 PROXY_AUTHENTICATION_REQUIRED,
1317                 PROXY_UNAUTHORIZED,
1318                 REQUEST_TIMEOUT,
1319                 CONFLICT,
1320                 GONE,
1321                 LENGTH_REQUIRED,
1322                 PRECONDITION_FAILED,
1323                 REQUEST_ENTITY_TOO_LARGE,
1324                 REQUEST_URI_TOO_LONG,
1325                 UNSUPPORTED_MEDIA_TYPE,
1326                 REQUESTED_RANGE_NOT_SATISFIABLE,
1327                 INVALID_RANGE,
1328                 EXPECTATION_FAILED,
1329                 UNPROCESSABLE_ENTITY,
1330                 LOCKED,
1331                 FAILED_DEPENDENCY,
1332                 INTERNAL_SERVER_ERROR,
1333                 NOT_IMPLEMENTED,
1334                 BAD_GATEWAY,
1335                 SERVICE_UNAVAILABLE,
1336                 GATEWAY_TIMEOUT,
1337                 HTTP_VERSION_NOT_SUPPORTED,
1338                 INSUFFICIENT_STORAGE,
1339                 NOT_EXTENDED
1340         }
1341         [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_LOGGER_LOG_", type_id = "soup_logger_log_level_get_type ()")]
1342         public enum LoggerLogLevel {
1343                 NONE,
1344                 MINIMAL,
1345                 HEADERS,
1346                 BODY
1347         }
1348         [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_MEMORY_", type_id = "soup_memory_use_get_type ()")]
1349         public enum MemoryUse {
1350                 STATIC,
1351                 TAKE,
1352                 COPY,
1353                 TEMPORARY
1354         }
1355         [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_MESSAGE_", type_id = "soup_message_flags_get_type ()")]
1356         [Flags]
1357         public enum MessageFlags {
1358                 NO_REDIRECT,
1359                 CAN_REBUILD,
1360                 OVERWRITE_CHUNKS,
1361                 CONTENT_DECODED,
1362                 CERTIFICATE_TRUSTED,
1363                 NEW_CONNECTION,
1364                 IDEMPOTENT,
1365                 IGNORE_CONNECTION_LIMITS,
1366                 DO_NOT_USE_AUTH_CACHE
1367         }
1368         [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_MESSAGE_HEADERS_", type_id = "soup_message_headers_type_get_type ()")]
1369         public enum MessageHeadersType {
1370                 REQUEST,
1371                 RESPONSE,
1372                 MULTIPART
1373         }
1374         [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_MESSAGE_PRIORITY_", type_id = "soup_message_priority_get_type ()")]
1375         public enum MessagePriority {
1376                 VERY_LOW,
1377                 LOW,
1378                 NORMAL,
1379                 HIGH,
1380                 VERY_HIGH
1381         }
1382         [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_SERVER_LISTEN_", type_id = "soup_server_listen_options_get_type ()")]
1383         [Flags]
1384         [Version (since = "2.48")]
1385         public enum ServerListenOptions {
1386                 HTTPS,
1387                 IPV4_ONLY,
1388                 IPV6_ONLY
1389         }
1390         [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_SOCKET_", type_id = "soup_socket_io_status_get_type ()")]
1391         public enum SocketIOStatus {
1392                 OK,
1393                 WOULD_BLOCK,
1394                 EOF,
1395                 ERROR
1396         }
1397         [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_STATUS_", type_id = "soup_status_get_type ()")]
1398         public enum Status {
1399                 NONE,
1400                 CANCELLED,
1401                 CANT_RESOLVE,
1402                 CANT_RESOLVE_PROXY,
1403                 CANT_CONNECT,
1404                 CANT_CONNECT_PROXY,
1405                 SSL_FAILED,
1406                 IO_ERROR,
1407                 MALFORMED,
1408                 TRY_AGAIN,
1409                 TOO_MANY_REDIRECTS,
1410                 TLS_FAILED,
1411                 CONTINUE,
1412                 SWITCHING_PROTOCOLS,
1413                 PROCESSING,
1414                 OK,
1415                 CREATED,
1416                 ACCEPTED,
1417                 NON_AUTHORITATIVE,
1418                 NO_CONTENT,
1419                 RESET_CONTENT,
1420                 PARTIAL_CONTENT,
1421                 MULTI_STATUS,
1422                 MULTIPLE_CHOICES,
1423                 MOVED_PERMANENTLY,
1424                 FOUND,
1425                 MOVED_TEMPORARILY,
1426                 SEE_OTHER,
1427                 NOT_MODIFIED,
1428                 USE_PROXY,
1429                 NOT_APPEARING_IN_THIS_PROTOCOL,
1430                 TEMPORARY_REDIRECT,
1431                 BAD_REQUEST,
1432                 UNAUTHORIZED,
1433                 PAYMENT_REQUIRED,
1434                 FORBIDDEN,
1435                 NOT_FOUND,
1436                 METHOD_NOT_ALLOWED,
1437                 NOT_ACCEPTABLE,
1438                 PROXY_AUTHENTICATION_REQUIRED,
1439                 PROXY_UNAUTHORIZED,
1440                 REQUEST_TIMEOUT,
1441                 CONFLICT,
1442                 GONE,
1443                 LENGTH_REQUIRED,
1444                 PRECONDITION_FAILED,
1445                 REQUEST_ENTITY_TOO_LARGE,
1446                 REQUEST_URI_TOO_LONG,
1447                 UNSUPPORTED_MEDIA_TYPE,
1448                 REQUESTED_RANGE_NOT_SATISFIABLE,
1449                 INVALID_RANGE,
1450                 EXPECTATION_FAILED,
1451                 UNPROCESSABLE_ENTITY,
1452                 LOCKED,
1453                 FAILED_DEPENDENCY,
1454                 INTERNAL_SERVER_ERROR,
1455                 NOT_IMPLEMENTED,
1456                 BAD_GATEWAY,
1457                 SERVICE_UNAVAILABLE,
1458                 GATEWAY_TIMEOUT,
1459                 HTTP_VERSION_NOT_SUPPORTED,
1460                 INSUFFICIENT_STORAGE,
1461                 NOT_EXTENDED;
1462                 public static unowned string get_phrase (uint status_code);
1463                 [Version (since = "2.26")]
1464                 public static uint proxify (uint status_code);
1465         }
1466         [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_WEBSOCKET_CLOSE_", type_id = "soup_websocket_close_code_get_type ()")]
1467         [Version (since = "2.50")]
1468         public enum WebsocketCloseCode {
1469                 NORMAL,
1470                 GOING_AWAY,
1471                 PROTOCOL_ERROR,
1472                 UNSUPPORTED_DATA,
1473                 NO_STATUS,
1474                 ABNORMAL,
1475                 BAD_DATA,
1476                 POLICY_VIOLATION,
1477                 TOO_BIG,
1478                 NO_EXTENSION,
1479                 SERVER_ERROR,
1480                 TLS_HANDSHAKE
1481         }
1482         [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_WEBSOCKET_CONNECTION_", type_id = "soup_websocket_connection_type_get_type ()")]
1483         [Version (since = "2.50")]
1484         public enum WebsocketConnectionType {
1485                 UNKNOWN,
1486                 CLIENT,
1487                 SERVER
1488         }
1489         [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_WEBSOCKET_DATA_", type_id = "soup_websocket_data_type_get_type ()")]
1490         [Version (since = "2.50")]
1491         public enum WebsocketDataType {
1492                 TEXT,
1493                 BINARY
1494         }
1495         [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_WEBSOCKET_ERROR_", type_id = "soup_websocket_error_get_type ()")]
1496         [Version (since = "2.50")]
1497         public enum WebsocketError {
1498                 FAILED,
1499                 NOT_WEBSOCKET,
1500                 BAD_HANDSHAKE,
1501                 BAD_ORIGIN;
1502                 public static GLib.Quark get_quark ();
1503         }
1504         [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_WEBSOCKET_STATE_", type_id = "soup_websocket_state_get_type ()")]
1505         [Version (since = "2.50")]
1506         public enum WebsocketState {
1507                 OPEN,
1508                 CLOSING,
1509                 CLOSED
1510         }
1511         [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_REQUEST_ERROR_")]
1512         [Version (since = "2.42")]
1513         public errordomain RequestError {
1514                 BAD_URI,
1515                 UNSUPPORTED_URI_SCHEME,
1516                 PARSING,
1517                 ENCODING;
1518                 public static GLib.Quark quark ();
1519         }
1520         [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_REQUESTER_ERROR_")]
1521         public errordomain RequesterError {
1522                 BAD_URI,
1523                 UNSUPPORTED_URI_SCHEME;
1524                 public static GLib.Quark quark ();
1525         }
1526         [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_TLD_ERROR_")]
1527         [Version (since = "2.40")]
1528         public errordomain TLDError {
1529                 INVALID_HOSTNAME,
1530                 IS_IP_ADDRESS,
1531                 NOT_ENOUGH_DOMAINS,
1532                 NO_BASE_DOMAIN,
1533                 NO_PSL_DATA;
1534                 public static GLib.Quark quark ();
1535         }
1536         [CCode (cheader_filename = "libsoup/soup.h", instance_pos = 2.9)]
1537         public delegate void AddressCallback (Soup.Address addr, uint status);
1538         [CCode (cheader_filename = "libsoup/soup.h", instance_pos = 4.9)]
1539         public delegate bool AuthDomainBasicAuthCallback (Soup.AuthDomainBasic domain, Soup.Message msg, string username, string password);
1540         [CCode (cheader_filename = "libsoup/soup.h", instance_pos = 3.9)]
1541         public delegate string? AuthDomainDigestAuthCallback (Soup.AuthDomainDigest domain, Soup.Message msg, string username);
1542         [CCode (cheader_filename = "libsoup/soup.h", instance_pos = 2.9)]
1543         public delegate bool AuthDomainFilter (Soup.AuthDomain domain, Soup.Message msg);
1544         [CCode (cheader_filename = "libsoup/soup.h", instance_pos = 3.9)]
1545         public delegate bool AuthDomainGenericAuthCallback (Soup.AuthDomain domain, Soup.Message msg, string username);
1546         [CCode (cheader_filename = "libsoup/soup.h", instance_pos = 2.9)]
1547         [Version (deprecated = true)]
1548         public delegate Soup.Buffer? ChunkAllocator (Soup.Message msg, size_t max_len);
1549         [CCode (cheader_filename = "libsoup/soup.h", instance_pos = 2.9)]
1550         public delegate Soup.LoggerLogLevel LoggerFilter (Soup.Logger logger, Soup.Message msg);
1551         [CCode (cheader_filename = "libsoup/soup.h", instance_pos = 4.9)]
1552         public delegate void LoggerPrinter (Soup.Logger logger, Soup.LoggerLogLevel level, char direction, string data);
1553         [CCode (cheader_filename = "libsoup/soup.h", instance_pos = 2.9)]
1554         public delegate void MessageHeadersForeachFunc (string name, string value);
1555         [CCode (cheader_filename = "libsoup/soup.h", instance_pos = 4.9)]
1556         public delegate void PasswordManagerCallback (Soup.PasswordManager password_manager, Soup.Message msg, Soup.Auth auth, bool retrying);
1557         [CCode (cheader_filename = "libsoup/soup.h", instance_pos = 4.9)]
1558         [Version (deprecated = true, deprecated_since = "2.28")]
1559         public delegate void ProxyResolverCallback (Soup.ProxyResolver proxy_resolver, Soup.Message msg, uint arg, Soup.Address addr);
1560         [CCode (cheader_filename = "libsoup/soup.h", has_target = false)]
1561         public delegate void ProxyURIResolverCallback (Soup.ProxyURIResolver resolver, uint status, Soup.URI proxy_uri);
1562         [CCode (cheader_filename = "libsoup/soup.h", instance_pos = 5.9)]
1563         public delegate void ServerCallback (Soup.Server server, Soup.Message msg, string path, GLib.HashTable<string,string>? query, Soup.ClientContext client);
1564         [CCode (cheader_filename = "libsoup/soup.h", instance_pos = 4.9)]
1565         public delegate void ServerWebsocketCallback (Soup.Server server, Soup.WebsocketConnection connection, string path, Soup.ClientContext client);
1566         [CCode (cheader_filename = "libsoup/soup.h", instance_pos = 2.9)]
1567         public delegate void SessionCallback (Soup.Session session, Soup.Message msg);
1568         [CCode (cheader_filename = "libsoup/soup.h", instance_pos = 3.9)]
1569         [Version (since = "2.62")]
1570         public delegate void SessionConnectProgressCallback (Soup.Session session, GLib.SocketClientEvent event, GLib.IOStream connection);
1571         [CCode (cheader_filename = "libsoup/soup.h", instance_pos = 2.9)]
1572         public delegate void SocketCallback (Soup.Socket sock, uint status);
1573         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_ADDRESS_ANY_PORT")]
1574         public const int ADDRESS_ANY_PORT;
1575         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_ADDRESS_FAMILY")]
1576         public const string ADDRESS_FAMILY;
1577         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_ADDRESS_NAME")]
1578         public const string ADDRESS_NAME;
1579         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_ADDRESS_PHYSICAL")]
1580         public const string ADDRESS_PHYSICAL;
1581         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_ADDRESS_PORT")]
1582         public const string ADDRESS_PORT;
1583         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_ADDRESS_PROTOCOL")]
1584         public const string ADDRESS_PROTOCOL;
1585         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_ADDRESS_SOCKADDR")]
1586         public const string ADDRESS_SOCKADDR;
1587         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_AUTH_DOMAIN_ADD_PATH")]
1588         public const string AUTH_DOMAIN_ADD_PATH;
1589         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_AUTH_DOMAIN_BASIC_AUTH_CALLBACK")]
1590         public const string AUTH_DOMAIN_BASIC_AUTH_CALLBACK;
1591         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_AUTH_DOMAIN_BASIC_AUTH_DATA")]
1592         public const string AUTH_DOMAIN_BASIC_AUTH_DATA;
1593         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_AUTH_DOMAIN_DIGEST_AUTH_CALLBACK")]
1594         public const string AUTH_DOMAIN_DIGEST_AUTH_CALLBACK;
1595         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_AUTH_DOMAIN_DIGEST_AUTH_DATA")]
1596         public const string AUTH_DOMAIN_DIGEST_AUTH_DATA;
1597         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_AUTH_DOMAIN_FILTER")]
1598         public const string AUTH_DOMAIN_FILTER;
1599         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_AUTH_DOMAIN_FILTER_DATA")]
1600         public const string AUTH_DOMAIN_FILTER_DATA;
1601         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_AUTH_DOMAIN_GENERIC_AUTH_CALLBACK")]
1602         public const string AUTH_DOMAIN_GENERIC_AUTH_CALLBACK;
1603         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_AUTH_DOMAIN_GENERIC_AUTH_DATA")]
1604         public const string AUTH_DOMAIN_GENERIC_AUTH_DATA;
1605         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_AUTH_DOMAIN_PROXY")]
1606         public const string AUTH_DOMAIN_PROXY;
1607         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_AUTH_DOMAIN_REALM")]
1608         public const string AUTH_DOMAIN_REALM;
1609         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_AUTH_DOMAIN_REMOVE_PATH")]
1610         public const string AUTH_DOMAIN_REMOVE_PATH;
1611         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_AUTH_HOST")]
1612         public const string AUTH_HOST;
1613         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_AUTH_IS_AUTHENTICATED")]
1614         public const string AUTH_IS_AUTHENTICATED;
1615         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_AUTH_IS_FOR_PROXY")]
1616         public const string AUTH_IS_FOR_PROXY;
1617         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_AUTH_REALM")]
1618         public const string AUTH_REALM;
1619         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_AUTH_SCHEME_NAME")]
1620         public const string AUTH_SCHEME_NAME;
1621         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_CHAR_HTTP_CTL")]
1622         public const int CHAR_HTTP_CTL;
1623         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_CHAR_HTTP_SEPARATOR")]
1624         public const int CHAR_HTTP_SEPARATOR;
1625         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_CHAR_URI_GEN_DELIMS")]
1626         public const int CHAR_URI_GEN_DELIMS;
1627         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_CHAR_URI_PERCENT_ENCODED")]
1628         public const int CHAR_URI_PERCENT_ENCODED;
1629         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_CHAR_URI_SUB_DELIMS")]
1630         public const int CHAR_URI_SUB_DELIMS;
1631         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_COOKIE_JAR_ACCEPT_POLICY")]
1632         [Version (since = "2.30")]
1633         public const string COOKIE_JAR_ACCEPT_POLICY;
1634         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_COOKIE_JAR_DB_FILENAME")]
1635         public const string COOKIE_JAR_DB_FILENAME;
1636         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_COOKIE_JAR_READ_ONLY")]
1637         public const string COOKIE_JAR_READ_ONLY;
1638         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_COOKIE_JAR_TEXT_FILENAME")]
1639         public const string COOKIE_JAR_TEXT_FILENAME;
1640         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_COOKIE_MAX_AGE_ONE_DAY")]
1641         [Version (since = "2.24")]
1642         public const int COOKIE_MAX_AGE_ONE_DAY;
1643         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_COOKIE_MAX_AGE_ONE_HOUR")]
1644         [Version (since = "2.24")]
1645         public const int COOKIE_MAX_AGE_ONE_HOUR;
1646         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_COOKIE_MAX_AGE_ONE_WEEK")]
1647         [Version (since = "2.24")]
1648         public const int COOKIE_MAX_AGE_ONE_WEEK;
1649         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_COOKIE_MAX_AGE_ONE_YEAR")]
1650         [Version (since = "2.24")]
1651         public const int COOKIE_MAX_AGE_ONE_YEAR;
1652         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_FORM_MIME_TYPE_MULTIPART")]
1653         [Version (since = "2.26")]
1654         public const string FORM_MIME_TYPE_MULTIPART;
1655         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_FORM_MIME_TYPE_URLENCODED")]
1656         [Version (since = "2.26")]
1657         public const string FORM_MIME_TYPE_URLENCODED;
1658         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_LOGGER_LEVEL")]
1659         [Version (since = "2.56")]
1660         public const string LOGGER_LEVEL;
1661         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_LOGGER_MAX_BODY_SIZE")]
1662         [Version (since = "2.56")]
1663         public const string LOGGER_MAX_BODY_SIZE;
1664         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_MAJOR_VERSION")]
1665         [Version (since = "2.42")]
1666         public const int MAJOR_VERSION;
1667         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_MESSAGE_FIRST_PARTY")]
1668         [Version (since = "2.30")]
1669         public const string MESSAGE_FIRST_PARTY;
1670         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_MESSAGE_FLAGS")]
1671         public const string MESSAGE_FLAGS;
1672         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_MESSAGE_HTTP_VERSION")]
1673         public const string MESSAGE_HTTP_VERSION;
1674         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_MESSAGE_METHOD")]
1675         public const string MESSAGE_METHOD;
1676         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_MESSAGE_PRIORITY")]
1677         [Version (since = "2.44")]
1678         public const string MESSAGE_PRIORITY;
1679         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_MESSAGE_REASON_PHRASE")]
1680         public const string MESSAGE_REASON_PHRASE;
1681         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_MESSAGE_REQUEST_BODY")]
1682         public const string MESSAGE_REQUEST_BODY;
1683         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_MESSAGE_REQUEST_BODY_DATA")]
1684         [Version (since = "2.46")]
1685         public const string MESSAGE_REQUEST_BODY_DATA;
1686         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_MESSAGE_REQUEST_HEADERS")]
1687         public const string MESSAGE_REQUEST_HEADERS;
1688         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_MESSAGE_RESPONSE_BODY")]
1689         public const string MESSAGE_RESPONSE_BODY;
1690         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_MESSAGE_RESPONSE_BODY_DATA")]
1691         [Version (since = "2.46")]
1692         public const string MESSAGE_RESPONSE_BODY_DATA;
1693         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_MESSAGE_RESPONSE_HEADERS")]
1694         public const string MESSAGE_RESPONSE_HEADERS;
1695         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_MESSAGE_SERVER_SIDE")]
1696         public const string MESSAGE_SERVER_SIDE;
1697         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_MESSAGE_STATUS_CODE")]
1698         public const string MESSAGE_STATUS_CODE;
1699         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_MESSAGE_TLS_CERTIFICATE")]
1700         [Version (since = "2.34")]
1701         public const string MESSAGE_TLS_CERTIFICATE;
1702         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_MESSAGE_TLS_ERRORS")]
1703         [Version (since = "2.34")]
1704         public const string MESSAGE_TLS_ERRORS;
1705         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_MESSAGE_URI")]
1706         public const string MESSAGE_URI;
1707         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_MICRO_VERSION")]
1708         [Version (since = "2.42")]
1709         public const int MICRO_VERSION;
1710         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_MINOR_VERSION")]
1711         [Version (since = "2.42")]
1712         public const int MINOR_VERSION;
1713         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_REQUEST_SESSION")]
1714         [Version (since = "2.42")]
1715         public const string REQUEST_SESSION;
1716         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_REQUEST_URI")]
1717         [Version (since = "2.42")]
1718         public const string REQUEST_URI;
1719         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SERVER_ASYNC_CONTEXT")]
1720         [Version (deprecated = true)]
1721         public const string SERVER_ASYNC_CONTEXT;
1722         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SERVER_HTTPS_ALIASES")]
1723         [Version (since = "2.44")]
1724         public const string SERVER_HTTPS_ALIASES;
1725         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SERVER_HTTP_ALIASES")]
1726         [Version (since = "2.44")]
1727         public const string SERVER_HTTP_ALIASES;
1728         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SERVER_INTERFACE")]
1729         [Version (deprecated = true)]
1730         public const string SERVER_INTERFACE;
1731         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SERVER_PORT")]
1732         [Version (deprecated = true)]
1733         public const string SERVER_PORT;
1734         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SERVER_RAW_PATHS")]
1735         public const string SERVER_RAW_PATHS;
1736         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SERVER_SERVER_HEADER")]
1737         public const string SERVER_SERVER_HEADER;
1738         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SERVER_SSL_CERT_FILE")]
1739         [Version (deprecated = true)]
1740         public const string SERVER_SSL_CERT_FILE;
1741         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SERVER_SSL_KEY_FILE")]
1742         [Version (deprecated = true)]
1743         public const string SERVER_SSL_KEY_FILE;
1744         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SERVER_TLS_CERTIFICATE")]
1745         [Version (since = "2.38")]
1746         public const string SERVER_TLS_CERTIFICATE;
1747         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SESSION_ACCEPT_LANGUAGE")]
1748         [Version (since = "2.30")]
1749         public const string SESSION_ACCEPT_LANGUAGE;
1750         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SESSION_ACCEPT_LANGUAGE_AUTO")]
1751         [Version (since = "2.30")]
1752         public const string SESSION_ACCEPT_LANGUAGE_AUTO;
1753         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SESSION_ASYNC_CONTEXT")]
1754         public const string SESSION_ASYNC_CONTEXT;
1755         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SESSION_HTTPS_ALIASES")]
1756         [Version (since = "2.38")]
1757         public const string SESSION_HTTPS_ALIASES;
1758         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SESSION_HTTP_ALIASES")]
1759         [Version (since = "2.38")]
1760         public const string SESSION_HTTP_ALIASES;
1761         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SESSION_IDLE_TIMEOUT")]
1762         [Version (since = "2.24")]
1763         public const string SESSION_IDLE_TIMEOUT;
1764         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SESSION_LOCAL_ADDRESS")]
1765         [Version (since = "2.42")]
1766         public const string SESSION_LOCAL_ADDRESS;
1767         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SESSION_MAX_CONNS")]
1768         public const string SESSION_MAX_CONNS;
1769         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SESSION_MAX_CONNS_PER_HOST")]
1770         public const string SESSION_MAX_CONNS_PER_HOST;
1771         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SESSION_PROXY_RESOLVER")]
1772         public const string SESSION_PROXY_RESOLVER;
1773         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SESSION_PROXY_URI")]
1774         public const string SESSION_PROXY_URI;
1775         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SESSION_SSL_CA_FILE")]
1776         public const string SESSION_SSL_CA_FILE;
1777         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SESSION_SSL_STRICT")]
1778         [Version (since = "2.30")]
1779         public const string SESSION_SSL_STRICT;
1780         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SESSION_SSL_USE_SYSTEM_CA_FILE")]
1781         [Version (since = "2.38")]
1782         public const string SESSION_SSL_USE_SYSTEM_CA_FILE;
1783         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SESSION_TIMEOUT")]
1784         public const string SESSION_TIMEOUT;
1785         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SESSION_TLS_DATABASE")]
1786         [Version (since = "2.38")]
1787         public const string SESSION_TLS_DATABASE;
1788         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SESSION_TLS_INTERACTION")]
1789         [Version (since = "2.48")]
1790         public const string SESSION_TLS_INTERACTION;
1791         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SESSION_USER_AGENT")]
1792         public const string SESSION_USER_AGENT;
1793         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SESSION_USE_NTLM")]
1794         public const string SESSION_USE_NTLM;
1795         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SESSION_USE_THREAD_CONTEXT")]
1796         [Version (since = "2.38")]
1797         public const string SESSION_USE_THREAD_CONTEXT;
1798         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SOCKET_ASYNC_CONTEXT")]
1799         public const string SOCKET_ASYNC_CONTEXT;
1800         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SOCKET_FLAG_NONBLOCKING")]
1801         public const string SOCKET_FLAG_NONBLOCKING;
1802         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SOCKET_IS_SERVER")]
1803         public const string SOCKET_IS_SERVER;
1804         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SOCKET_LOCAL_ADDRESS")]
1805         public const string SOCKET_LOCAL_ADDRESS;
1806         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SOCKET_REMOTE_ADDRESS")]
1807         public const string SOCKET_REMOTE_ADDRESS;
1808         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SOCKET_SSL_CREDENTIALS")]
1809         public const string SOCKET_SSL_CREDENTIALS;
1810         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SOCKET_SSL_FALLBACK")]
1811         public const string SOCKET_SSL_FALLBACK;
1812         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SOCKET_SSL_STRICT")]
1813         public const string SOCKET_SSL_STRICT;
1814         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SOCKET_TIMEOUT")]
1815         public const string SOCKET_TIMEOUT;
1816         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SOCKET_TLS_CERTIFICATE")]
1817         [Version (since = "2.34")]
1818         public const string SOCKET_TLS_CERTIFICATE;
1819         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SOCKET_TLS_ERRORS")]
1820         [Version (since = "2.34")]
1821         public const string SOCKET_TLS_ERRORS;
1822         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SOCKET_TRUSTED_CERTIFICATE")]
1823         public const string SOCKET_TRUSTED_CERTIFICATE;
1824         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_SOCKET_USE_THREAD_CONTEXT")]
1825         [Version (since = "2.38")]
1826         public const string SOCKET_USE_THREAD_CONTEXT;
1827         [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_VERSION_MIN_REQUIRED")]
1828         [Version (since = "2.42")]
1829         public const int VERSION_MIN_REQUIRED;
1830         [CCode (cheader_filename = "libsoup/soup.h")]
1831         [Version (since = "2.24")]
1832         public static unowned GLib.TimeoutSource add_completion (GLib.MainContext? async_context, GLib.SourceFunc function);
1833         [CCode (cheader_filename = "libsoup/soup.h")]
1834         public static unowned GLib.TimeoutSource add_idle (GLib.MainContext? async_context, GLib.SourceFunc function);
1835         [CCode (cheader_filename = "libsoup/soup.h")]
1836         public static unowned GLib.TimeoutSource add_io_watch (GLib.MainContext? async_context, GLib.IOChannel chan, GLib.IOCondition condition, GLib.IOFunc function);
1837         [CCode (cheader_filename = "libsoup/soup.h")]
1838         public static unowned GLib.TimeoutSource add_timeout (GLib.MainContext? async_context, uint interval, GLib.SourceFunc function);
1839         [CCode (cheader_filename = "libsoup/soup.h")]
1840         [Version (since = "2.42")]
1841         public static bool check_version (uint major, uint minor, uint micro);
1842         [CCode (cheader_filename = "libsoup/soup.h")]
1843         [Version (since = "2.24")]
1844         public static GLib.SList<Soup.Cookie> cookies_from_request (Soup.Message msg);
1845         [CCode (cheader_filename = "libsoup/soup.h")]
1846         [Version (since = "2.24")]
1847         public static GLib.SList<Soup.Cookie> cookies_from_response (Soup.Message msg);
1848         [CCode (cheader_filename = "libsoup/soup.h")]
1849         [Version (since = "2.24")]
1850         public static string cookies_to_cookie_header (GLib.SList<Soup.Cookie> cookies);
1851         [CCode (cheader_filename = "libsoup/soup.h")]
1852         [Version (since = "2.24")]
1853         public static void cookies_to_request (GLib.SList<Soup.Cookie> cookies, Soup.Message msg);
1854         [CCode (cheader_filename = "libsoup/soup.h")]
1855         [Version (since = "2.24")]
1856         public static void cookies_to_response (GLib.SList<Soup.Cookie> cookies, Soup.Message msg);
1857         [CCode (cheader_filename = "libsoup/soup.h")]
1858         [Version (since = "2.42")]
1859         public static uint get_major_version ();
1860         [CCode (cheader_filename = "libsoup/soup.h")]
1861         [Version (since = "2.42")]
1862         public static uint get_micro_version ();
1863         [CCode (cheader_filename = "libsoup/soup.h")]
1864         [Version (since = "2.42")]
1865         public static uint get_minor_version ();
1866         [CCode (cheader_filename = "libsoup/soup.h")]
1867         public static bool header_contains (string header, string token);
1868         [CCode (cheader_filename = "libsoup/soup.h")]
1869         public static void header_free_param_list (GLib.HashTable<string,string> param_list);
1870         [CCode (cheader_filename = "libsoup/soup.h")]
1871         [Version (since = "2.26")]
1872         public static void header_g_string_append_param (GLib.StringBuilder string, string name, string value);
1873         [CCode (cheader_filename = "libsoup/soup.h")]
1874         [Version (since = "2.30")]
1875         public static void header_g_string_append_param_quoted (GLib.StringBuilder string, string name, string value);
1876         [CCode (cheader_filename = "libsoup/soup.h")]
1877         public static GLib.SList<string> header_parse_list (string header);
1878         [CCode (cheader_filename = "libsoup/soup.h")]
1879         public static GLib.HashTable<string,string> header_parse_param_list (string header);
1880         [CCode (cheader_filename = "libsoup/soup.h")]
1881         public static GLib.SList<string> header_parse_quality_list (string header, out GLib.SList<string> unacceptable);
1882         [CCode (cheader_filename = "libsoup/soup.h")]
1883         [Version (since = "2.24")]
1884         public static GLib.HashTable<string,string> header_parse_semi_param_list (string header);
1885         [CCode (cheader_filename = "libsoup/soup.h")]
1886         [Version (since = "2.26")]
1887         public static bool headers_parse (string str, int len, Soup.MessageHeaders dest);
1888         [CCode (cheader_filename = "libsoup/soup.h")]
1889         public static uint headers_parse_request (string str, int len, Soup.MessageHeaders req_headers, out string req_method, out string req_path, out Soup.HTTPVersion ver);
1890         [CCode (cheader_filename = "libsoup/soup.h")]
1891         public static bool headers_parse_response (string str, int len, Soup.MessageHeaders headers, out Soup.HTTPVersion ver, out uint status_code, out string reason_phrase);
1892         [CCode (cheader_filename = "libsoup/soup.h")]
1893         public static bool headers_parse_status_line (string status_line, out Soup.HTTPVersion ver, out uint status_code, out string reason_phrase);
1894         [CCode (cheader_filename = "libsoup/soup.h")]
1895         public static GLib.Quark http_error_quark ();
1896         [CCode (cheader_filename = "libsoup/soup.h")]
1897         public static bool str_case_equal (void* v1, void* v2);
1898         [CCode (cheader_filename = "libsoup/soup.h")]
1899         public static uint str_case_hash (void* key);
1900         [CCode (cheader_filename = "libsoup/soup.h")]
1901         [Version (since = "2.40")]
1902         public static bool tld_domain_is_public_suffix (string domain);
1903         [CCode (cheader_filename = "libsoup/soup.h")]
1904         [Version (since = "2.40")]
1905         public static unowned string tld_get_base_domain (string hostname) throws GLib.Error;
1906         [CCode (cheader_filename = "libsoup/soup.h")]
1907         [Version (deprecated = true)]
1908         public static void value_array_append (GLib.ValueArray array, GLib.Type type, ...);
1909         [CCode (cheader_filename = "libsoup/soup.h")]
1910         [Version (deprecated = true)]
1911         public static void value_array_append_vals (GLib.ValueArray array, ...);
1912         [CCode (cheader_filename = "libsoup/soup.h")]
1913         [Version (deprecated = true)]
1914         public static GLib.ValueArray? value_array_from_args (va_list args);
1915         [CCode (cheader_filename = "libsoup/soup.h")]
1916         [Version (deprecated = true)]
1917         public static bool value_array_get_nth (GLib.ValueArray array, uint index_, GLib.Type type, ...);
1918         [CCode (cheader_filename = "libsoup/soup.h")]
1919         [Version (deprecated = true)]
1920         public static void value_array_insert (GLib.ValueArray array, uint index_, GLib.Type type, ...);
1921         [CCode (cheader_filename = "libsoup/soup.h")]
1922         [Version (deprecated = true)]
1923         public static GLib.ValueArray value_array_new ();
1924         [CCode (cheader_filename = "libsoup/soup.h")]
1925         [Version (deprecated = true)]
1926         public static GLib.ValueArray value_array_new_with_vals (...);
1927         [CCode (cheader_filename = "libsoup/soup.h")]
1928         [Version (deprecated = true)]
1929         public static bool value_array_to_args (GLib.ValueArray array, va_list args);
1930         [CCode (cheader_filename = "libsoup/soup.h")]
1931         [Version (deprecated = true)]
1932         public static void value_hash_insert (GLib.HashTable<string,GLib.Value?> hash, string key, GLib.Type type, ...);
1933         [CCode (cheader_filename = "libsoup/soup.h")]
1934         [Version (deprecated = true)]
1935         public static void value_hash_insert_vals (GLib.HashTable<string,GLib.Value?> hash, ...);
1936         [CCode (cheader_filename = "libsoup/soup.h")]
1937         [Version (deprecated = true)]
1938         public static void value_hash_insert_value (GLib.HashTable<string,GLib.Value?> hash, string key, GLib.Value value);
1939         [CCode (cheader_filename = "libsoup/soup.h")]
1940         [Version (deprecated = true)]
1941         public static bool value_hash_lookup (GLib.HashTable<string,GLib.Value?> hash, string key, GLib.Type type, ...);
1942         [CCode (cheader_filename = "libsoup/soup.h")]
1943         [Version (deprecated = true)]
1944         public static bool value_hash_lookup_vals (GLib.HashTable<string,GLib.Value?> hash, ...);
1945         [CCode (cheader_filename = "libsoup/soup.h")]
1946         [Version (deprecated = true)]
1947         public static GLib.HashTable<string,GLib.Value?> value_hash_new ();
1948         [CCode (cheader_filename = "libsoup/soup.h")]
1949         [Version (deprecated = true)]
1950         public static GLib.HashTable<string,GLib.Value?> value_hash_new_with_vals (...);
1951         [CCode (cheader_filename = "libsoup/soup.h")]
1952         [Version (since = "2.50")]
1953         public static void websocket_client_prepare_handshake (Soup.Message msg, string? origin, [CCode (array_length = false, array_null_terminated = true)] string[]? protocols);
1954         [CCode (cheader_filename = "libsoup/soup.h")]
1955         [Version (since = "2.50")]
1956         public static bool websocket_client_verify_handshake (Soup.Message msg) throws GLib.Error;
1957         [CCode (cheader_filename = "libsoup/soup.h")]
1958         [Version (since = "2.50")]
1959         public static bool websocket_server_check_handshake (Soup.Message msg, string? origin, [CCode (array_length = false, array_null_terminated = true)] string[]? protocols) throws GLib.Error;
1960         [CCode (cheader_filename = "libsoup/soup.h")]
1961         [Version (since = "2.50")]
1962         public static bool websocket_server_process_handshake (Soup.Message msg, string? expected_origin, [CCode (array_length = false, array_null_terminated = true)] string[]? protocols);