1 /* libsoup-2.4.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Soup", lower_case_cprefix = "soup_")]
5 [CCode (cheader_filename = "libsoup/soup.h")]
6 public class Address : GLib.Object {
7 [CCode (has_construct_function = false)]
8 public Address (string name, uint port);
9 [CCode (has_construct_function = false)]
10 public Address.any (Soup.AddressFamily family, uint port);
11 public static bool equal_by_ip (void* addr1, void* addr2);
12 public static bool equal_by_name (void* addr1, void* addr2);
13 [CCode (has_construct_function = false)]
14 public Address.from_sockaddr (void* sa, int len);
15 public unowned string get_name ();
16 public unowned string get_physical ();
17 public uint get_port ();
18 public void* get_sockaddr (int len);
19 public static uint hash_by_ip (void* addr);
20 public static uint hash_by_name (void* addr);
21 public bool is_resolved ();
22 public void resolve_async (GLib.MainContext async_context, GLib.Cancellable cancellable, Soup.AddressCallback callback);
23 public uint resolve_sync (GLib.Cancellable cancellable);
25 public Soup.AddressFamily family { get; construct; }
26 public string name { get; construct; }
27 public string physical { get; }
28 public int port { get; construct; }
29 public void* sockaddr { get; construct; }
31 [CCode (cheader_filename = "libsoup/soup.h")]
32 public class Auth : GLib.Object {
33 [CCode (has_construct_function = false)]
34 public Auth (GLib.Type type, Soup.Message msg, string auth_header);
35 public virtual void authenticate (string username, string password);
36 public void free_protection_space (GLib.SList space);
37 public virtual unowned string get_authorization (Soup.Message msg);
38 public unowned string get_host ();
39 public unowned string get_info ();
40 public virtual unowned GLib.SList get_protection_space (Soup.URI source_uri);
41 public unowned string get_realm ();
42 public unowned string get_scheme_name ();
43 public virtual bool update (Soup.Message msg, string auth_header);
44 public string host { get; construct; }
46 public bool is_authenticated { get; }
48 public bool is_for_proxy { get; construct; }
49 public string realm { get; construct; }
50 public string scheme_name { get; }
52 [CCode (cheader_filename = "libsoup/soup.h")]
53 public class AuthDomain : GLib.Object {
54 public virtual unowned string accepts (Soup.Message msg);
55 public void add_path (string path);
56 public virtual unowned string challenge (Soup.Message msg);
57 public virtual bool check_password (Soup.Message msg, string username, string password);
58 public bool covers (Soup.Message msg);
59 public unowned string get_realm ();
60 public void remove_path (string path);
61 public void set_filter (Soup.AuthDomainFilter filter, void* filter_data, GLib.DestroyNotify dnotify);
62 public void set_generic_auth_callback (Soup.AuthDomainGenericAuthCallback auth_callback, void* auth_data, GLib.DestroyNotify dnotify);
63 public bool try_generic_auth_callback (Soup.Message msg, string username);
65 public void* filter { get; set; }
67 public void* filter_data { get; set; }
69 public void* generic_auth_callback { get; set; }
71 public void* generic_auth_data { get; set; }
73 public bool proxy { get; construct; }
74 public string realm { get; construct; }
76 [CCode (cheader_filename = "libsoup/soup.h")]
77 public class AuthDomainBasic : Soup.AuthDomain {
78 [CCode (type = "SoupAuthDomain*", has_construct_function = false)]
79 public AuthDomainBasic (string optname1);
80 public static void set_auth_callback (Soup.AuthDomain domain, Soup.AuthDomainBasicAuthCallback callback, GLib.DestroyNotify dnotify);
82 public void* auth_callback { get; set; }
84 public void* auth_data { get; set; }
86 [CCode (cheader_filename = "libsoup/soup.h")]
87 public class AuthDomainDigest : Soup.AuthDomain {
88 [CCode (type = "SoupAuthDomain*", has_construct_function = false)]
89 public AuthDomainDigest (string optname1);
90 public static unowned string encode_password (string username, string realm, string password);
91 public static void set_auth_callback (Soup.AuthDomain domain, Soup.AuthDomainDigestAuthCallback callback, GLib.DestroyNotify dnotify);
93 public void* auth_callback { get; set; }
95 public void* auth_data { get; set; }
98 [CCode (copy_function = "soup_buffer_copy", type_id = "SOUP_TYPE_BUFFER", cheader_filename = "libsoup/soup.h")]
100 public weak string data;
101 public size_t length;
102 [CCode (has_construct_function = false)]
103 public Buffer (Soup.MemoryUse use, void* data, size_t length);
104 public Soup.Buffer copy ();
105 public void* get_owner ();
106 [CCode (has_construct_function = false)]
107 public Buffer.subbuffer (Soup.Buffer parent, size_t offset, size_t length);
108 [CCode (has_construct_function = false)]
109 public Buffer.with_owner (void* data, size_t length, void* owner, GLib.DestroyNotify owner_dnotify);
112 [CCode (type_id = "SOUP_TYPE_BYTE_ARRAY", cheader_filename = "libsoup/soup.h")]
113 public class ByteArray {
116 [CCode (type_id = "SOUP_TYPE_CLIENT_CONTEXT", cheader_filename = "libsoup/soup.h")]
117 public class ClientContext {
118 public unowned Soup.Address get_address ();
119 public unowned Soup.AuthDomain get_auth_domain ();
120 public unowned string get_auth_user ();
121 public unowned string get_host ();
122 public unowned Soup.Socket get_socket ();
125 [CCode (copy_function = "soup_cookie_copy", type_id = "SOUP_TYPE_COOKIE", cheader_filename = "libsoup/soup.h")]
126 public class Cookie {
127 public weak string domain;
128 public weak Soup.Date expires;
129 public bool http_only;
130 public weak string name;
131 public weak string path;
133 public weak string value;
134 [CCode (has_construct_function = false)]
135 public Cookie (string name, string value, string domain, string path, int max_age);
136 public bool applies_to_uri (Soup.URI uri);
137 public Soup.Cookie copy ();
138 public bool equal (Soup.Cookie cookie2);
139 public static unowned Soup.Cookie parse (string header, Soup.URI origin);
140 public void set_domain (string domain);
141 public void set_expires (Soup.Date expires);
142 public void set_http_only (bool http_only);
143 public void set_max_age (int max_age);
144 public void set_name (string name);
145 public void set_path (string path);
146 public void set_secure (bool secure);
147 public void set_value (string value);
148 public unowned string to_cookie_header ();
149 public unowned string to_set_cookie_header ();
151 [CCode (cheader_filename = "libsoup/soup.h")]
152 public class CookieJar : GLib.Object, Soup.SessionFeature {
153 [CCode (has_construct_function = false)]
155 public void add_cookie (Soup.Cookie cookie);
156 public unowned GLib.SList all_cookies ();
157 public void delete_cookie (Soup.Cookie cookie);
158 public unowned string get_cookies (Soup.URI uri, bool for_http);
159 public virtual void save ();
160 public void set_cookie (Soup.URI uri, string cookie);
162 public bool read_only { get; construct; }
163 public virtual signal void changed (Soup.Cookie old_cookie, Soup.Cookie new_cookie);
165 [CCode (cheader_filename = "libsoup/soup.h")]
166 public class CookieJarText : Soup.CookieJar, Soup.SessionFeature {
167 [CCode (type = "SoupCookieJar*", has_construct_function = false)]
168 public CookieJarText (string filename, bool read_only);
170 public string filename { owned get; construct; }
173 [CCode (copy_function = "soup_date_copy", type_id = "SOUP_TYPE_DATE", cheader_filename = "libsoup/soup.h")]
183 [CCode (has_construct_function = false)]
184 public Date (int year, int month, int day, int hour, int minute, int second);
185 public Soup.Date copy ();
186 [CCode (has_construct_function = false)]
187 public Date.from_now (int offset_seconds);
188 [CCode (has_construct_function = false)]
189 public Date.from_string (string date_string);
190 [CCode (has_construct_function = false)]
191 public Date.from_time_t (ulong when);
192 public bool is_past ();
193 public unowned string to_string (Soup.DateFormat format);
194 public ulong to_time_t ();
195 public void to_timeval (GLib.TimeVal time);
197 [CCode (cheader_filename = "libsoup/soup.h")]
198 public class Logger : GLib.Object, Soup.SessionFeature {
199 [CCode (has_construct_function = false)]
200 public Logger (Soup.LoggerLogLevel level, int max_body_size);
201 public void set_printer (Soup.LoggerPrinter printer, void* printer_data, GLib.DestroyNotify destroy);
202 public void set_request_filter (Soup.LoggerFilter request_filter, void* filter_data, GLib.DestroyNotify destroy);
203 public void set_response_filter (Soup.LoggerFilter response_filter, void* filter_data, GLib.DestroyNotify destroy);
205 [CCode (cheader_filename = "libsoup/soup.h")]
206 public class Message : GLib.Object {
207 public weak Soup.MessageBody request_body;
208 public weak Soup.MessageHeaders request_headers;
209 public weak Soup.MessageBody response_body;
210 public weak Soup.MessageHeaders response_headers;
211 [CCode (has_construct_function = false)]
212 public Message (string method, string uri_string);
213 public uint add_header_handler (string @signal, string header, GLib.Callback callback);
214 public uint add_status_code_handler (string @signal, uint status_code, GLib.Callback callback);
215 [CCode (has_construct_function = false)]
216 public Message.from_uri (string method, Soup.URI uri);
217 public unowned Soup.Address get_address ();
218 public Soup.MessageFlags get_flags ();
219 public Soup.HTTPVersion get_http_version ();
220 public unowned Soup.URI get_uri ();
221 public bool is_keepalive ();
222 public void set_chunk_allocator (Soup.ChunkAllocator allocator, GLib.DestroyNotify destroy_notify);
223 public void set_flags (Soup.MessageFlags flags);
224 public void set_http_version (Soup.HTTPVersion version);
225 public void set_request (string content_type, Soup.MemoryUse req_use, string req_body, size_t req_length);
226 public void set_response (string content_type, Soup.MemoryUse resp_use, string resp_body, size_t resp_length);
227 public void set_status (uint status_code);
228 public void set_status_full (uint status_code, string reason_phrase);
229 public void set_uri (Soup.URI uri);
230 public Soup.MessageFlags flags { get; set; }
231 public Soup.HTTPVersion http_version { get; set; }
233 public string method { owned get; set; }
235 public string reason_phrase { owned get; set; }
237 public bool server_side { get; construct; }
239 public uint status_code { get; set; }
240 public Soup.URI uri { get; set; }
242 public virtual signal void finished ();
244 public virtual signal void got_body ();
246 public virtual signal void got_chunk (Soup.Buffer chunk);
248 public virtual signal void got_headers ();
250 public virtual signal void got_informational ();
252 public virtual signal void restarted ();
254 public virtual signal void wrote_body ();
256 public virtual signal void wrote_body_data (Soup.Buffer p0);
258 public virtual signal void wrote_chunk ();
260 public virtual signal void wrote_headers ();
262 public virtual signal void wrote_informational ();
265 [CCode (type_id = "SOUP_TYPE_MESSAGE_BODY", cheader_filename = "libsoup/soup.h")]
266 public class MessageBody {
267 public weak string data;
269 [CCode (has_construct_function = false)]
270 public MessageBody ();
271 public void append (Soup.MemoryUse use, void* data, size_t length);
272 public void append_buffer (Soup.Buffer buffer);
273 public void complete ();
274 public unowned Soup.Buffer flatten ();
275 public bool get_accumulate ();
276 public unowned Soup.Buffer get_chunk (int64 offset);
277 public void got_chunk (Soup.Buffer chunk);
278 public void set_accumulate (bool accumulate);
279 public void truncate ();
280 public void wrote_chunk (Soup.Buffer chunk);
283 [CCode (type_id = "SOUP_TYPE_MESSAGE_HEADERS", cheader_filename = "libsoup/soup.h")]
284 public class MessageHeaders {
285 [CCode (has_construct_function = false)]
286 public MessageHeaders (Soup.MessageHeadersType type);
287 public void append (string name, string value);
288 public void clear ();
289 public void @foreach (Soup.MessageHeadersForeachFunc func);
290 public void free_ranges (Soup.Range ranges);
291 public unowned string @get (string name);
292 public bool get_content_disposition (out unowned string disposition, GLib.HashTable @params);
293 public int64 get_content_length ();
294 public bool get_content_range (int64 start, int64 end, int64 total_length);
295 public unowned string get_content_type (GLib.HashTable @params);
296 public Soup.Encoding get_encoding ();
297 public Soup.Expectation get_expectations ();
298 public bool get_ranges (int64 total_length, out unowned Soup.Range ranges, int length);
299 public void remove (string name);
300 public void replace (string name, string value);
301 public void set_content_disposition (string disposition, GLib.HashTable @params);
302 public void set_content_length (int64 content_length);
303 public void set_content_range (int64 start, int64 end, int64 total_length);
304 public void set_content_type (string content_type, GLib.HashTable @params);
305 public void set_encoding (Soup.Encoding encoding);
306 public void set_expectations (Soup.Expectation expectations);
307 public void set_range (int64 start, int64 end);
308 public void set_ranges (Soup.Range ranges, int length);
311 [CCode (cheader_filename = "libsoup/soup.h")]
312 public class MessageHeadersIter {
314 public void init (Soup.MessageHeaders hdrs);
315 public bool next (out unowned string name, out unowned string value);
318 [CCode (type_id = "SOUP_TYPE_MULTIPART", cheader_filename = "libsoup/soup.h")]
319 public class Multipart {
320 [CCode (has_construct_function = false)]
321 public Multipart (string mime_type);
322 public void append_form_file (string control_name, string filename, string content_type, Soup.Buffer body);
323 public void append_form_string (string control_name, string data);
324 public void append_part (Soup.MessageHeaders headers, Soup.Buffer body);
325 [CCode (has_construct_function = false)]
326 public Multipart.from_message (Soup.MessageHeaders headers, Soup.MessageBody body);
327 public int get_length ();
328 public bool get_part (int part, out unowned Soup.MessageHeaders headers, out unowned Soup.Buffer body);
329 public void to_message (Soup.MessageHeaders dest_headers, Soup.MessageBody dest_body);
332 [CCode (cheader_filename = "libsoup/soup.h")]
337 [CCode (cheader_filename = "libsoup/soup.h")]
338 public class Server : GLib.Object {
339 [CCode (has_construct_function = false)]
340 public Server (string optname1, ...);
341 public void add_auth_domain (Soup.AuthDomain auth_domain);
342 public void add_handler (string path, owned Soup.ServerCallback callback);
343 public unowned GLib.MainContext get_async_context ();
344 public unowned Soup.Socket get_listener ();
345 public uint get_port ();
346 public bool is_https ();
347 public void pause_message (Soup.Message msg);
349 public void remove_auth_domain (Soup.AuthDomain auth_domain);
350 public void remove_handler (string path);
352 public void run_async ();
353 public void unpause_message (Soup.Message msg);
354 public void* async_context { get; construct; }
356 public Soup.Address @interface { owned get; construct; }
357 public uint port { get; construct; }
359 public bool raw_paths { get; construct; }
361 public string server_header { owned get; set construct; }
363 public string ssl_cert_file { owned get; construct; }
365 public string ssl_key_file { owned get; construct; }
366 public virtual signal void request_aborted (Soup.Message msg, Soup.ClientContext client);
367 public virtual signal void request_finished (Soup.Message msg, Soup.ClientContext client);
368 public virtual signal void request_read (Soup.Message msg, Soup.ClientContext client);
369 public virtual signal void request_started (Soup.Message msg, Soup.ClientContext client);
371 [CCode (cheader_filename = "libsoup/soup.h")]
372 public class Session : GLib.Object {
373 public void abort ();
374 public virtual void cancel_message (Soup.Message msg, uint status_code);
375 public unowned GLib.MainContext get_async_context ();
376 public void pause_message (Soup.Message msg);
377 public virtual void queue_message (owned Soup.Message msg, Soup.SessionCallback callback);
378 public void remove_feature (Soup.SessionFeature feature);
379 public virtual void requeue_message (Soup.Message msg);
380 public virtual uint send_message (Soup.Message msg);
381 public void unpause_message (Soup.Message msg);
383 public Soup.SessionFeature add_feature { owned get; set; }
385 public GLib.Type add_feature_by_type { get; set; }
386 public void* async_context { get; construct; }
388 public uint idle_timeout { get; set; }
390 public int max_conns { get; set; }
392 public int max_conns_per_host { get; set; }
394 public Soup.URI proxy_uri { owned get; set; }
396 public GLib.Type remove_feature_by_type { get; set; }
398 public string ssl_ca_file { owned get; set; }
400 public uint timeout { get; set; }
402 public bool use_ntlm { get; set; }
404 public string user_agent { owned get; set; }
405 public virtual signal void authenticate (Soup.Message msg, Soup.Auth auth, bool retrying);
406 public virtual signal void request_queued (Soup.Message p0);
407 public virtual signal void request_started (Soup.Message msg, Soup.Socket socket);
408 public virtual signal void request_unqueued (Soup.Message p0);
410 [CCode (cheader_filename = "libsoup/soup.h")]
411 public class SessionAsync : Soup.Session {
412 [CCode (type = "SoupSession*", has_construct_function = false)]
413 public SessionAsync ();
414 [CCode (type = "SoupSession*", has_construct_function = false)]
415 public SessionAsync.with_options (string optname1);
417 [CCode (cheader_filename = "libsoup/soup.h")]
418 public class SessionSync : Soup.Session {
419 [CCode (type = "SoupSession*", has_construct_function = false)]
420 public SessionSync ();
421 [CCode (type = "SoupSession*", has_construct_function = false)]
422 public SessionSync.with_options (string optname1);
424 [CCode (cheader_filename = "libsoup/soup.h")]
425 public class Socket : GLib.Object {
426 [CCode (has_construct_function = false)]
427 public Socket (string optname1);
428 public void connect_async (GLib.Cancellable cancellable, Soup.SocketCallback callback);
429 public uint connect_sync (GLib.Cancellable cancellable);
430 public void disconnect ();
431 public unowned Soup.Address get_local_address ();
432 public unowned Soup.Address get_remote_address ();
433 public bool is_connected ();
434 public bool is_ssl ();
435 public bool listen ();
436 public Soup.SocketIOStatus read (void* buffer, size_t len, size_t nread, GLib.Cancellable cancellable) throws GLib.Error;
437 public Soup.SocketIOStatus read_until (void* buffer, size_t len, void* boundary, size_t boundary_len, size_t nread, bool got_boundary, GLib.Cancellable cancellable) throws GLib.Error;
438 public bool start_proxy_ssl (string ssl_host, GLib.Cancellable cancellable);
439 public bool start_ssl (GLib.Cancellable cancellable);
440 public Soup.SocketIOStatus write (void* buffer, size_t len, size_t nwrote, GLib.Cancellable cancellable) throws GLib.Error;
442 public void* async_context { get; construct; }
444 public bool is_server { get; }
445 public Soup.Address local_address { get; construct; }
447 public bool non_blocking { get; set; }
448 public Soup.Address remote_address { get; construct; }
450 public void* ssl_creds { get; set; }
452 public uint timeout { get; set; }
453 public virtual signal void disconnected ();
454 public virtual signal void new_connection (Soup.Socket p0);
455 public virtual signal void readable ();
456 public virtual signal void writable ();
459 [CCode (copy_function = "soup_uri_copy", type_id = "SOUP_TYPE_URI", cheader_filename = "libsoup/soup.h")]
461 public weak string fragment;
462 public weak string host;
463 public weak string password;
464 public weak string path;
466 public weak string query;
467 public weak string scheme;
468 public weak string user;
469 [CCode (has_construct_function = false)]
470 public URI (string uri_string);
471 public Soup.URI copy ();
472 public static string decode (string part);
473 public static string encode (string part, string? escape_extra);
474 public bool equal (Soup.URI uri2);
475 public static string normalize (string part, string unescape_extra);
476 public void set_fragment (string fragment);
477 public void set_host (string host);
478 public void set_password (string password);
479 public void set_path (string path);
480 public void set_port (uint port);
481 public void set_query (string query);
482 public void set_query_from_fields (...);
483 public void set_query_from_form (GLib.HashTable form);
484 public void set_scheme (string scheme);
485 public void set_user (string user);
486 public string to_string (bool just_path_and_query);
487 public bool uses_default_port ();
488 [CCode (has_construct_function = false)]
489 public URI.with_base (Soup.URI @base, string uri_string);
491 [CCode (cheader_filename = "libsoup/soup.h")]
492 public interface ProxyResolver : Soup.SessionFeature, GLib.Object {
493 public abstract void get_proxy_async (Soup.Message msg, GLib.MainContext async_context, GLib.Cancellable cancellable, Soup.ProxyResolverCallback callback);
494 public abstract uint get_proxy_sync (Soup.Message msg, GLib.Cancellable cancellable, out unowned Soup.Address addr);
496 [CCode (cheader_filename = "libsoup/soup.h")]
497 public interface SessionFeature : GLib.Object {
498 public abstract void attach (Soup.Session session);
499 public abstract void detach (Soup.Session session);
501 public abstract void request_queued (Soup.Session session, Soup.Message msg);
503 public abstract void request_started (Soup.Session session, Soup.Message msg, Soup.Socket socket);
505 public abstract void request_unqueued (Soup.Session session, Soup.Message msg);
507 [CCode (cprefix = "SOUP_ADDRESS_FAMILY_", cheader_filename = "libsoup/soup.h")]
508 public enum AddressFamily {
513 [CCode (cprefix = "SOUP_DATE_", cheader_filename = "libsoup/soup.h")]
514 public enum DateFormat {
523 [CCode (cprefix = "SOUP_ENCODING_", cheader_filename = "libsoup/soup.h")]
524 public enum Encoding {
532 [CCode (cprefix = "SOUP_EXPECTATION_", cheader_filename = "libsoup/soup.h")]
534 public enum Expectation {
538 [CCode (cprefix = "SOUP_HTTP_", cheader_filename = "libsoup/soup.h")]
539 public enum HTTPVersion {
543 [CCode (cprefix = "SOUP_STATUS_", cheader_filename = "libsoup/soup.h")]
544 public enum KnownStatusCode {
573 NOT_APPEARING_IN_THIS_PROTOCOL,
582 PROXY_AUTHENTICATION_REQUIRED,
589 REQUEST_ENTITY_TOO_LARGE,
590 REQUEST_URI_TOO_LONG,
591 UNSUPPORTED_MEDIA_TYPE,
592 REQUESTED_RANGE_NOT_SATISFIABLE,
595 UNPROCESSABLE_ENTITY,
598 INTERNAL_SERVER_ERROR,
603 HTTP_VERSION_NOT_SUPPORTED,
604 INSUFFICIENT_STORAGE,
607 [CCode (cprefix = "SOUP_LOGGER_LOG_", cheader_filename = "libsoup/soup.h")]
608 public enum LoggerLogLevel {
614 [CCode (cprefix = "SOUP_MEMORY_", cheader_filename = "libsoup/soup.h")]
615 public enum MemoryUse {
621 [CCode (cprefix = "SOUP_MESSAGE_", cheader_filename = "libsoup/soup.h")]
623 public enum MessageFlags {
627 [CCode (cprefix = "SOUP_MESSAGE_HEADERS_", cheader_filename = "libsoup/soup.h")]
628 public enum MessageHeadersType {
633 [CCode (cprefix = "SOUP_SSL_ERROR_", cheader_filename = "libsoup/soup.h")]
634 public enum SSLError {
635 HANDSHAKE_NEEDS_READ,
636 HANDSHAKE_NEEDS_WRITE,
639 [CCode (cprefix = "SOUP_SOCKET_", cheader_filename = "libsoup/soup.h")]
640 public enum SocketIOStatus {
646 [CCode (cprefix = "SOUP_XMLRPC_ERROR_", cheader_filename = "libsoup/soup.h")]
647 public enum XMLRPCError {
651 [CCode (cprefix = "SOUP_XMLRPC_FAULT_", cheader_filename = "libsoup/soup.h")]
652 public enum XMLRPCFault {
653 PARSE_ERROR_NOT_WELL_FORMED,
654 PARSE_ERROR_UNSUPPORTED_ENCODING,
655 PARSE_ERROR_INVALID_CHARACTER_FOR_ENCODING,
656 SERVER_ERROR_INVALID_XML_RPC,
657 SERVER_ERROR_REQUESTED_METHOD_NOT_FOUND,
658 SERVER_ERROR_INVALID_METHOD_PARAMETERS,
659 SERVER_ERROR_INTERNAL_XML_RPC_ERROR,
664 [CCode (cheader_filename = "libsoup/soup.h")]
665 public delegate void AddressCallback (Soup.Address addr, uint status);
666 [CCode (cheader_filename = "libsoup/soup.h")]
667 public delegate bool AuthDomainBasicAuthCallback (Soup.AuthDomain domain, Soup.Message msg, string username, string password);
668 [CCode (cheader_filename = "libsoup/soup.h")]
669 public delegate unowned string AuthDomainDigestAuthCallback (Soup.AuthDomain domain, Soup.Message msg, string username);
670 [CCode (cheader_filename = "libsoup/soup.h")]
671 public delegate bool AuthDomainFilter (Soup.AuthDomain domain, Soup.Message msg);
672 [CCode (cheader_filename = "libsoup/soup.h")]
673 public delegate bool AuthDomainGenericAuthCallback (Soup.AuthDomain domain, Soup.Message msg, string username);
674 [CCode (cheader_filename = "libsoup/soup.h")]
675 public delegate unowned Soup.Buffer ChunkAllocator (Soup.Message msg, size_t max_len);
676 [CCode (cheader_filename = "libsoup/soup.h")]
677 public delegate Soup.LoggerLogLevel LoggerFilter (Soup.Logger logger, Soup.Message msg);
678 [CCode (cheader_filename = "libsoup/soup.h")]
679 public delegate void LoggerPrinter (Soup.Logger logger, Soup.LoggerLogLevel level, string direction, string data);
680 [CCode (cheader_filename = "libsoup/soup.h")]
681 public delegate void MessageHeadersForeachFunc (string name, string value);
682 [CCode (cheader_filename = "libsoup/soup.h", has_target = false)]
683 public delegate void ProxyResolverCallback (Soup.ProxyResolver p1, Soup.Message p2, uint p3, Soup.Address p4, void* p5);
684 [CCode (cheader_filename = "libsoup/soup.h")]
685 public delegate void ServerCallback (Soup.Server server, Soup.Message msg, string path, GLib.HashTable query, Soup.ClientContext client);
686 [CCode (cheader_filename = "libsoup/soup.h")]
687 public delegate void SessionCallback (Soup.Session session, Soup.Message msg);
688 [CCode (cheader_filename = "libsoup/soup.h")]
689 public delegate void SocketCallback (Soup.Socket sock, uint status);
690 [CCode (cheader_filename = "libsoup/soup.h")]
691 public const int ADDRESS_ANY_PORT;
692 [CCode (cheader_filename = "libsoup/soup.h")]
693 public const string ADDRESS_FAMILY;
694 [CCode (cheader_filename = "libsoup/soup.h")]
695 public const string ADDRESS_NAME;
696 [CCode (cheader_filename = "libsoup/soup.h")]
697 public const string ADDRESS_PHYSICAL;
698 [CCode (cheader_filename = "libsoup/soup.h")]
699 public const string ADDRESS_PORT;
700 [CCode (cheader_filename = "libsoup/soup.h")]
701 public const string ADDRESS_SOCKADDR;
702 [CCode (cheader_filename = "libsoup/soup.h")]
703 public const int AF_INET6;
704 [CCode (cheader_filename = "libsoup/soup.h")]
705 public const string AUTH_DOMAIN_ADD_PATH;
706 [CCode (cheader_filename = "libsoup/soup.h")]
707 public const string AUTH_DOMAIN_BASIC_AUTH_CALLBACK;
708 [CCode (cheader_filename = "libsoup/soup.h")]
709 public const string AUTH_DOMAIN_BASIC_AUTH_DATA;
710 [CCode (cheader_filename = "libsoup/soup.h")]
711 public const int AUTH_DOMAIN_BASIC_H;
712 [CCode (cheader_filename = "libsoup/soup.h")]
713 public const string AUTH_DOMAIN_DIGEST_AUTH_CALLBACK;
714 [CCode (cheader_filename = "libsoup/soup.h")]
715 public const string AUTH_DOMAIN_DIGEST_AUTH_DATA;
716 [CCode (cheader_filename = "libsoup/soup.h")]
717 public const int AUTH_DOMAIN_DIGEST_H;
718 [CCode (cheader_filename = "libsoup/soup.h")]
719 public const string AUTH_DOMAIN_FILTER;
720 [CCode (cheader_filename = "libsoup/soup.h")]
721 public const string AUTH_DOMAIN_FILTER_DATA;
722 [CCode (cheader_filename = "libsoup/soup.h")]
723 public const string AUTH_DOMAIN_GENERIC_AUTH_CALLBACK;
724 [CCode (cheader_filename = "libsoup/soup.h")]
725 public const string AUTH_DOMAIN_GENERIC_AUTH_DATA;
726 [CCode (cheader_filename = "libsoup/soup.h")]
727 public const int AUTH_DOMAIN_H;
728 [CCode (cheader_filename = "libsoup/soup.h")]
729 public const string AUTH_DOMAIN_PROXY;
730 [CCode (cheader_filename = "libsoup/soup.h")]
731 public const string AUTH_DOMAIN_REALM;
732 [CCode (cheader_filename = "libsoup/soup.h")]
733 public const string AUTH_DOMAIN_REMOVE_PATH;
734 [CCode (cheader_filename = "libsoup/soup.h")]
735 public const int AUTH_H;
736 [CCode (cheader_filename = "libsoup/soup.h")]
737 public const string AUTH_HOST;
738 [CCode (cheader_filename = "libsoup/soup.h")]
739 public const string AUTH_IS_AUTHENTICATED;
740 [CCode (cheader_filename = "libsoup/soup.h")]
741 public const string AUTH_IS_FOR_PROXY;
742 [CCode (cheader_filename = "libsoup/soup.h")]
743 public const string AUTH_REALM;
744 [CCode (cheader_filename = "libsoup/soup.h")]
745 public const string AUTH_SCHEME_NAME;
746 [CCode (cheader_filename = "libsoup/soup.h")]
747 public const int COOKIE_H;
748 [CCode (cheader_filename = "libsoup/soup.h")]
749 public const int COOKIE_JAR_H;
750 [CCode (cheader_filename = "libsoup/soup.h")]
751 public const string COOKIE_JAR_READ_ONLY;
752 [CCode (cheader_filename = "libsoup/soup.h")]
753 public const string COOKIE_JAR_TEXT_FILENAME;
754 [CCode (cheader_filename = "libsoup/soup.h")]
755 public const int COOKIE_JAR_TEXT_H;
756 [CCode (cheader_filename = "libsoup/soup.h")]
757 public const int COOKIE_MAX_AGE_ONE_DAY;
758 [CCode (cheader_filename = "libsoup/soup.h")]
759 public const int COOKIE_MAX_AGE_ONE_HOUR;
760 [CCode (cheader_filename = "libsoup/soup.h")]
761 public const int COOKIE_MAX_AGE_ONE_WEEK;
762 [CCode (cheader_filename = "libsoup/soup.h")]
763 public const int COOKIE_MAX_AGE_ONE_YEAR;
764 [CCode (cheader_filename = "libsoup/soup.h")]
765 public const int DATE_H;
766 [CCode (cheader_filename = "libsoup/soup.h")]
767 public const int FORM_H;
768 [CCode (cheader_filename = "libsoup/soup.h")]
769 public const string FORM_MIME_TYPE_MULTIPART;
770 [CCode (cheader_filename = "libsoup/soup.h")]
771 public const string FORM_MIME_TYPE_URLENCODED;
772 [CCode (cheader_filename = "libsoup/soup.h")]
774 [CCode (cheader_filename = "libsoup/soup.h")]
775 public const int HEADERS_H;
776 [CCode (cheader_filename = "libsoup/soup.h")]
777 public const int LOGGER_H;
778 [CCode (cheader_filename = "libsoup/soup.h")]
779 public const int MESSAGE_BODY_H;
780 [CCode (cheader_filename = "libsoup/soup.h")]
781 public const string MESSAGE_FLAGS;
782 [CCode (cheader_filename = "libsoup/soup.h")]
783 public const int MESSAGE_H;
784 [CCode (cheader_filename = "libsoup/soup.h")]
785 public const int MESSAGE_HEADERS_H;
786 [CCode (cheader_filename = "libsoup/soup.h")]
787 public const string MESSAGE_HTTP_VERSION;
788 [CCode (cheader_filename = "libsoup/soup.h")]
789 public const string MESSAGE_METHOD;
790 [CCode (cheader_filename = "libsoup/soup.h")]
791 public const string MESSAGE_REASON_PHRASE;
792 [CCode (cheader_filename = "libsoup/soup.h")]
793 public const string MESSAGE_SERVER_SIDE;
794 [CCode (cheader_filename = "libsoup/soup.h")]
795 public const string MESSAGE_STATUS_CODE;
796 [CCode (cheader_filename = "libsoup/soup.h")]
797 public const string MESSAGE_URI;
798 [CCode (cheader_filename = "libsoup/soup.h")]
799 public const int METHOD_H;
800 [CCode (cheader_filename = "libsoup/soup.h")]
801 public const int MISC_H;
802 [CCode (cheader_filename = "libsoup/soup.h")]
803 public const int MULTIPART_H;
804 [CCode (cheader_filename = "libsoup/soup.h")]
805 public const int PROXY_RESOLVER_H;
806 [CCode (cheader_filename = "libsoup/soup.h")]
807 public const string SERVER_ASYNC_CONTEXT;
808 [CCode (cheader_filename = "libsoup/soup.h")]
809 public const int SERVER_H;
810 [CCode (cheader_filename = "libsoup/soup.h")]
811 public const string SERVER_INTERFACE;
812 [CCode (cheader_filename = "libsoup/soup.h")]
813 public const string SERVER_PORT;
814 [CCode (cheader_filename = "libsoup/soup.h")]
815 public const string SERVER_RAW_PATHS;
816 [CCode (cheader_filename = "libsoup/soup.h")]
817 public const string SERVER_SERVER_HEADER;
818 [CCode (cheader_filename = "libsoup/soup.h")]
819 public const string SERVER_SSL_CERT_FILE;
820 [CCode (cheader_filename = "libsoup/soup.h")]
821 public const string SERVER_SSL_KEY_FILE;
822 [CCode (cheader_filename = "libsoup/soup.h")]
823 public const string SESSION_ADD_FEATURE;
824 [CCode (cheader_filename = "libsoup/soup.h")]
825 public const string SESSION_ADD_FEATURE_BY_TYPE;
826 [CCode (cheader_filename = "libsoup/soup.h")]
827 public const string SESSION_ASYNC_CONTEXT;
828 [CCode (cheader_filename = "libsoup/soup.h")]
829 public const int SESSION_ASYNC_H;
830 [CCode (cheader_filename = "libsoup/soup.h")]
831 public const int SESSION_FEATURE_H;
832 [CCode (cheader_filename = "libsoup/soup.h")]
833 public const int SESSION_H;
834 [CCode (cheader_filename = "libsoup/soup.h")]
835 public const string SESSION_IDLE_TIMEOUT;
836 [CCode (cheader_filename = "libsoup/soup.h")]
837 public const string SESSION_MAX_CONNS;
838 [CCode (cheader_filename = "libsoup/soup.h")]
839 public const string SESSION_MAX_CONNS_PER_HOST;
840 [CCode (cheader_filename = "libsoup/soup.h")]
841 public const string SESSION_PROXY_URI;
842 [CCode (cheader_filename = "libsoup/soup.h")]
843 public const string SESSION_REMOVE_FEATURE_BY_TYPE;
844 [CCode (cheader_filename = "libsoup/soup.h")]
845 public const string SESSION_SSL_CA_FILE;
846 [CCode (cheader_filename = "libsoup/soup.h")]
847 public const int SESSION_SYNC_H;
848 [CCode (cheader_filename = "libsoup/soup.h")]
849 public const string SESSION_TIMEOUT;
850 [CCode (cheader_filename = "libsoup/soup.h")]
851 public const string SESSION_USER_AGENT;
852 [CCode (cheader_filename = "libsoup/soup.h")]
853 public const string SESSION_USE_NTLM;
854 [CCode (cheader_filename = "libsoup/soup.h")]
855 public const string SOCKET_ASYNC_CONTEXT;
856 [CCode (cheader_filename = "libsoup/soup.h")]
857 public const string SOCKET_FLAG_NONBLOCKING;
858 [CCode (cheader_filename = "libsoup/soup.h")]
859 public const int SOCKET_H;
860 [CCode (cheader_filename = "libsoup/soup.h")]
861 public const string SOCKET_IS_SERVER;
862 [CCode (cheader_filename = "libsoup/soup.h")]
863 public const string SOCKET_LOCAL_ADDRESS;
864 [CCode (cheader_filename = "libsoup/soup.h")]
865 public const string SOCKET_REMOTE_ADDRESS;
866 [CCode (cheader_filename = "libsoup/soup.h")]
867 public const string SOCKET_SSL_CREDENTIALS;
868 [CCode (cheader_filename = "libsoup/soup.h")]
869 public const string SOCKET_TIMEOUT;
870 [CCode (cheader_filename = "libsoup/soup.h")]
871 public const int STATUS_H;
872 [CCode (cheader_filename = "libsoup/soup.h")]
873 public const int TYPES_H;
874 [CCode (cheader_filename = "libsoup/soup.h")]
875 public const int URI_H;
876 [CCode (cheader_filename = "libsoup/soup.h")]
877 public const int VALUE_UTILS_H;
878 [CCode (cheader_filename = "libsoup/soup.h")]
879 public const int XMLRPC_H;
880 [CCode (cheader_filename = "libsoup/soup.h")]
881 public static unowned GLib.TimeoutSource add_completion (GLib.MainContext async_context, GLib.SourceFunc function, void* data);
882 [CCode (cheader_filename = "libsoup/soup.h")]
883 public static unowned GLib.TimeoutSource add_idle (GLib.MainContext async_context, GLib.SourceFunc function, void* data);
884 [CCode (cheader_filename = "libsoup/soup.h")]
885 public static unowned GLib.TimeoutSource add_timeout (GLib.MainContext async_context, uint interval, GLib.SourceFunc function, void* data);
886 [CCode (cheader_filename = "libsoup/soup.h")]
887 public static void cookies_free (GLib.SList cookies);
888 [CCode (cheader_filename = "libsoup/soup.h")]
889 public static unowned GLib.SList cookies_from_request (Soup.Message msg);
890 [CCode (cheader_filename = "libsoup/soup.h")]
891 public static unowned GLib.SList cookies_from_response (Soup.Message msg);
892 [CCode (cheader_filename = "libsoup/soup.h")]
893 public static unowned string cookies_to_cookie_header (GLib.SList cookies);
894 [CCode (cheader_filename = "libsoup/soup.h")]
895 public static void cookies_to_request (GLib.SList cookies, Soup.Message msg);
896 [CCode (cheader_filename = "libsoup/soup.h")]
897 public static void cookies_to_response (GLib.SList cookies, Soup.Message msg);
898 [CCode (cheader_filename = "libsoup/soup.h")]
899 public static unowned GLib.HashTable form_decode (string encoded_form);
900 [CCode (cheader_filename = "libsoup/soup.h")]
901 public static unowned GLib.HashTable form_decode_multipart (Soup.Message msg, string file_control_name, out unowned string filename, out unowned string content_type, out unowned Soup.Buffer file);
902 [CCode (cheader_filename = "libsoup/soup.h")]
903 public static unowned string form_encode (...);
904 [CCode (cheader_filename = "libsoup/soup.h")]
905 public static unowned string form_encode_datalist (void* form_data_set);
906 [CCode (cheader_filename = "libsoup/soup.h")]
907 public static unowned string form_encode_hash (GLib.HashTable form_data_set);
908 [CCode (cheader_filename = "libsoup/soup.h")]
909 public static unowned string form_encode_valist (string first_field, void* args);
910 [CCode (cheader_filename = "libsoup/soup.h")]
911 public static unowned Soup.Message form_request_new (string method, string uri, ...);
912 [CCode (cheader_filename = "libsoup/soup.h")]
913 public static unowned Soup.Message form_request_new_from_datalist (string method, string uri, void* form_data_set);
914 [CCode (cheader_filename = "libsoup/soup.h")]
915 public static unowned Soup.Message form_request_new_from_hash (string method, string uri, GLib.HashTable form_data_set);
916 [CCode (cheader_filename = "libsoup/soup.h")]
917 public static unowned Soup.Message form_request_new_from_multipart (string uri, Soup.Multipart multipart);
918 [CCode (cheader_filename = "libsoup/soup.h")]
919 public static bool header_contains (string header, string token);
920 [CCode (cheader_filename = "libsoup/soup.h")]
921 public static void header_free_list (GLib.SList list);
922 [CCode (cheader_filename = "libsoup/soup.h")]
923 public static void header_free_param_list (GLib.HashTable param_list);
924 [CCode (cheader_filename = "libsoup/soup.h")]
925 public static void header_g_string_append_param (GLib.StringBuilder str, string name, string value);
926 [CCode (cheader_filename = "libsoup/soup.h")]
927 public static unowned GLib.SList header_parse_list (string header);
928 [CCode (cheader_filename = "libsoup/soup.h")]
929 public static unowned GLib.HashTable header_parse_param_list (string header);
930 [CCode (cheader_filename = "libsoup/soup.h")]
931 public static unowned GLib.SList header_parse_quality_list (string header, GLib.SList unacceptable);
932 [CCode (cheader_filename = "libsoup/soup.h")]
933 public static unowned GLib.HashTable header_parse_semi_param_list (string header);
934 [CCode (cheader_filename = "libsoup/soup.h")]
935 public static bool headers_parse (string str, int len, Soup.MessageHeaders dest);
936 [CCode (cheader_filename = "libsoup/soup.h")]
937 public static uint headers_parse_request (string str, int len, Soup.MessageHeaders req_headers, out unowned string req_method, out unowned string req_path, Soup.HTTPVersion ver);
938 [CCode (cheader_filename = "libsoup/soup.h")]
939 public static bool headers_parse_response (string str, int len, Soup.MessageHeaders headers, Soup.HTTPVersion ver, uint status_code, out unowned string reason_phrase);
940 [CCode (cheader_filename = "libsoup/soup.h")]
941 public static bool headers_parse_status_line (string status_line, Soup.HTTPVersion ver, uint status_code, out unowned string reason_phrase);
942 [CCode (cheader_filename = "libsoup/soup.h")]
943 public static GLib.Quark http_error_quark ();
944 [CCode (cheader_filename = "libsoup/soup.h")]
945 public static GLib.Quark ssl_error_quark ();
946 [CCode (cheader_filename = "libsoup/soup.h")]
947 public static unowned string status_get_phrase (uint status_code);
948 [CCode (cheader_filename = "libsoup/soup.h")]
949 public static uint status_proxify (uint status_code);
950 [CCode (cheader_filename = "libsoup/soup.h")]
951 public static bool str_case_equal (void* v1, void* v2);
952 [CCode (cheader_filename = "libsoup/soup.h")]
953 public static uint str_case_hash (void* key);
954 [CCode (cheader_filename = "libsoup/soup.h")]
955 public static void value_array_append (GLib.ValueArray array, GLib.Type type);
956 [CCode (cheader_filename = "libsoup/soup.h")]
957 public static void value_array_append_vals (GLib.ValueArray array, ...);
958 [CCode (cheader_filename = "libsoup/soup.h")]
959 public static unowned GLib.ValueArray value_array_from_args (void* args);
960 [CCode (cheader_filename = "libsoup/soup.h")]
961 public static bool value_array_get_nth (GLib.ValueArray array, uint index_, GLib.Type type);
962 [CCode (cheader_filename = "libsoup/soup.h")]
963 public static void value_array_insert (GLib.ValueArray array, uint index_, GLib.Type type);
964 [CCode (cheader_filename = "libsoup/soup.h")]
965 public static unowned GLib.ValueArray value_array_new ();
966 [CCode (cheader_filename = "libsoup/soup.h")]
967 public static unowned GLib.ValueArray value_array_new_with_vals (...);
968 [CCode (cheader_filename = "libsoup/soup.h")]
969 public static bool value_array_to_args (GLib.ValueArray array, void* args);
970 [CCode (cheader_filename = "libsoup/soup.h")]
971 public static void value_hash_insert (GLib.HashTable hash, string key, GLib.Type type);
972 [CCode (cheader_filename = "libsoup/soup.h")]
973 public static void value_hash_insert_vals (GLib.HashTable hash, ...);
974 [CCode (cheader_filename = "libsoup/soup.h")]
975 public static void value_hash_insert_value (GLib.HashTable hash, string key, GLib.Value value);
976 [CCode (cheader_filename = "libsoup/soup.h")]
977 public static bool value_hash_lookup (GLib.HashTable hash, string key, GLib.Type type);
978 [CCode (cheader_filename = "libsoup/soup.h")]
979 public static bool value_hash_lookup_vals (GLib.HashTable hash, ...);
980 [CCode (cheader_filename = "libsoup/soup.h")]
981 public static unowned GLib.HashTable value_hash_new ();
982 [CCode (cheader_filename = "libsoup/soup.h")]
983 public static unowned GLib.HashTable value_hash_new_with_vals (...);
985 [CCode (cheader_filename = "libsoup/soup.h")]
986 public static unowned string xmlrpc_build_fault (int fault_code, string fault_format, ...);
987 [CCode (cheader_filename = "libsoup/soup.h")]
988 public static unowned string xmlrpc_build_method_call (string method_name, GLib.Value[] @params);
989 [CCode (cheader_filename = "libsoup/soup.h")]
990 public static unowned string xmlrpc_build_method_response (GLib.Value value);
991 [CCode (cheader_filename = "libsoup/soup.h")]
992 public static GLib.Quark xmlrpc_error_quark ();
993 [CCode (cheader_filename = "libsoup/soup.h", sentinel = "G_TYPE_INVALID")]
994 public static bool xmlrpc_extract_method_call (string method_call, int length, out unowned string method_name, ...);
995 [CCode (cheader_filename = "libsoup/soup.h", sentinel = "G_TYPE_INVALID")]
996 public static bool xmlrpc_extract_method_response (string method_response, int length, ...) throws GLib.Error;
997 [CCode (cheader_filename = "libsoup/soup.h")]
998 public static GLib.Quark xmlrpc_fault_quark ();
999 [CCode (cheader_filename = "libsoup/soup.h")]
1000 public static bool xmlrpc_parse_method_call (string method_call, int length, out unowned string method_name, out unowned GLib.ValueArray @params);
1001 [CCode (cheader_filename = "libsoup/soup.h")]
1002 public static bool xmlrpc_parse_method_response (string method_response, int length, GLib.Value value) throws GLib.Error;
1003 [CCode (cheader_filename = "libsoup/soup.h", sentinel = "G_TYPE_INVALID")]
1004 public static unowned Soup.Message xmlrpc_request_new (string uri, string method_name, ...);
1006 [CCode (cheader_filename = "libsoup/soup.h")]
1007 public static void xmlrpc_set_fault (Soup.Message msg, int fault_code, string fault_format, ...);
1008 [CCode (cheader_filename = "libsoup/soup.h", sentinel = "G_TYPE_INVALID")]
1009 public static void xmlrpc_set_response (Soup.Message msg, ...);