1 /* libsoup-2.2.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.any (Soup.AddressFamily family, uint port);
9 public unowned string get_name ();
10 public unowned string get_physical ();
11 public uint get_port ();
12 public void* get_sockaddr (int len);
13 [CCode (has_construct_function = false)]
14 public Address (string name, uint port);
15 public void resolve_async (Soup.AddressCallback callback);
16 public void resolve_async_full (GLib.MainContext async_context, Soup.AddressCallback callback);
17 public uint resolve_sync ();
18 public virtual signal void dns_result (int status);
20 [CCode (cheader_filename = "libsoup/soup.h")]
21 public class Connection : GLib.Object {
22 public void connect_async (Soup.ConnectionCallback callback);
23 public uint connect_sync ();
24 public void disconnect ();
25 public bool is_in_use ();
26 public ulong last_used ();
27 [CCode (has_construct_function = false)]
28 public Connection (string propname1);
29 public void release ();
30 public void reserve ();
31 public virtual void send_request (Soup.Message req);
33 public void* async_context { get; construct; }
35 public void* message_filter { get; set; }
37 public void* origin_uri { get; construct; }
39 public void* proxy_uri { get; construct; }
41 public void* ssl_creds { get; construct; }
43 public uint timeout { get; set; }
45 public virtual signal void authenticate (Soup.Message p0, string auth_type, string auth_realm, void* username, void* password);
46 public virtual signal void connect_result (int p0);
47 public virtual signal void disconnected ();
49 public virtual signal void reauthenticate (Soup.Message p0, string auth_type, string auth_realm, void* username, void* password);
51 [CCode (cheader_filename = "libsoup/soup.h")]
52 public class Message : GLib.Object {
53 public weak string method;
54 public weak string reason_phrase;
55 public Soup.DataBuffer request;
56 public weak GLib.HashTable request_headers;
57 public Soup.DataBuffer response;
58 public weak GLib.HashTable response_headers;
59 public Soup.MessageStatus status;
60 public uint status_code;
61 public void add_chunk (Soup.Ownership owner, owned string body, uint length);
62 public void add_final_chunk ();
63 public void add_handler (Soup.HandlerPhase phase, Soup.MessageCallbackFn handler_cb);
64 public static void add_header (GLib.HashTable hash, string name, string value);
65 public void add_header_handler (string header, Soup.HandlerPhase phase, Soup.MessageCallbackFn handler_cb);
66 public void add_status_class_handler (Soup.StatusClass status_class, Soup.HandlerPhase phase, Soup.MessageCallbackFn handler_cb);
67 public void add_status_code_handler (uint status_code, Soup.HandlerPhase phase, Soup.MessageCallbackFn handler_cb);
68 public static void clear_headers (GLib.HashTable hash);
69 [CCode (has_construct_function = false)]
70 public Message.from_uri (string method, Soup.Uri uri);
71 public uint get_flags ();
72 public static unowned string get_header (GLib.HashTable hash, string name);
73 public static unowned GLib.SList get_header_list (GLib.HashTable hash, string name);
74 public Soup.HttpVersion get_http_version ();
75 public Soup.TransferEncoding get_request_encoding (uint content_length);
76 public Soup.TransferEncoding get_response_encoding (uint content_length);
77 public unowned Soup.Uri get_uri ();
78 public bool io_in_progress ();
79 public void io_pause ();
80 public void io_stop ();
81 public void io_unpause ();
82 public bool is_keepalive ();
83 [CCode (has_construct_function = false)]
84 public Message (string method, string uri_string);
85 public void read_request (Soup.Socket sock);
86 public void remove_handler (Soup.HandlerPhase phase, Soup.MessageCallbackFn handler_cb);
87 public static void remove_header (GLib.HashTable hash, string name);
88 public void send_request (Soup.Socket sock, bool is_via_proxy);
89 public void set_flags (uint flags);
90 public void set_http_version (Soup.HttpVersion version);
91 public void set_request (string content_type, Soup.Ownership req_owner, owned string req_body, ulong req_length);
92 public void set_response (string content_type, Soup.Ownership resp_owner, owned string resp_body, ulong resp_length);
93 public void set_status (uint status_code);
94 public void set_status_full (uint status_code, string reason_phrase);
95 public void set_uri (Soup.Uri uri);
97 public virtual signal void finished ();
99 public virtual signal void got_body ();
101 public virtual signal void got_chunk ();
103 public virtual signal void got_headers ();
105 public virtual signal void got_informational ();
107 public virtual signal void restarted ();
109 public virtual signal void wrote_body ();
111 public virtual signal void wrote_chunk ();
113 public virtual signal void wrote_headers ();
115 public virtual signal void wrote_informational ();
118 [CCode (free_function = "soup_message_queue_destroy", cheader_filename = "libsoup/soup.h")]
119 public class MessageQueue {
120 public void append (Soup.Message msg);
121 public unowned Soup.Message first (Soup.MessageQueueIter iter);
122 public void free_iter (Soup.MessageQueueIter iter);
123 [CCode (has_construct_function = false)]
124 public MessageQueue ();
125 public unowned Soup.Message next (Soup.MessageQueueIter iter);
126 public unowned Soup.Message remove (Soup.MessageQueueIter iter);
127 public void remove_message (Soup.Message msg);
130 [CCode (cheader_filename = "libsoup/soup.h")]
131 public class MessageQueueIter {
132 public weak GLib.List cur;
133 public weak GLib.List next;
136 [CCode (cheader_filename = "libsoup/soup.h")]
137 public class Protocol {
139 [CCode (cheader_filename = "libsoup/soup.h")]
140 public class Server : GLib.Object {
141 public void add_handler (string path, Soup.ServerAuthContext auth_ctx, Soup.ServerCallbackFn callback, Soup.ServerUnregisterFn unreg, void* data);
142 public unowned GLib.MainContext get_async_context ();
143 public unowned Soup.ServerHandler get_handler (string path);
144 public unowned Soup.Socket get_listener ();
145 public uint get_port ();
146 public unowned Soup.Protocol get_protocol ();
147 public unowned GLib.SList list_handlers ();
148 [CCode (has_construct_function = false)]
149 public Server (string optname1, ...);
151 public void remove_handler (string path);
153 public void run_async ();
154 public void* async_context { get; construct; }
156 public Soup.Address @interface { owned get; construct; }
157 public uint port { get; construct; }
159 public string ssl_cert_file { owned get; construct; }
161 public string ssl_key_file { owned get; construct; }
164 [CCode (cheader_filename = "libsoup/soup.h")]
165 public class ServerAuth {
166 public weak Soup.ServerAuthBasic basic;
167 public weak Soup.ServerAuthDigest digest;
168 public Soup.AuthType type;
169 public bool check_passwd (string passwd);
170 public unowned string get_user ();
171 [CCode (has_construct_function = false)]
172 public ServerAuth (Soup.ServerAuthContext auth_ctx, GLib.SList auth_hdrs, Soup.Message msg);
175 [CCode (cheader_filename = "libsoup/soup.h")]
176 public class ServerAuthBasic {
177 public weak string passwd;
178 public Soup.AuthType type;
179 public weak string user;
182 [CCode (cheader_filename = "libsoup/soup.h")]
183 public class ServerAuthContext {
184 public void* basic_info;
185 public weak Soup.ServerAuthCallbackFn callback;
186 public void* digest_info;
188 public void* user_data;
189 public void challenge (Soup.Message msg, string header_name);
192 [CCode (cheader_filename = "libsoup/soup.h")]
193 public class ServerAuthDigest {
194 public Soup.DigestAlgorithm algorithm;
195 public weak string cnonce;
196 public weak string digest_response;
197 public weak string digest_uri;
198 public bool integrity;
199 public weak string nonce;
200 public int nonce_count;
201 public weak string realm;
202 public weak string request_method;
203 public Soup.AuthType type;
204 public weak string user;
207 [CCode (cheader_filename = "libsoup/soup.h")]
208 public class ServerContext {
209 public weak Soup.ServerAuth auth;
210 public weak Soup.ServerHandler handler;
211 public Soup.MethodId method_id;
212 public weak Soup.Message msg;
213 public weak string path;
214 public weak Soup.Server server;
215 public weak Soup.Socket sock;
216 public unowned Soup.Address get_client_address ();
217 public unowned string get_client_host ();
220 [CCode (cheader_filename = "libsoup/soup.h")]
221 public class ServerHandler {
222 public weak Soup.ServerAuthContext auth_ctx;
223 public weak Soup.ServerCallbackFn callback;
224 public weak string path;
225 public weak Soup.ServerUnregisterFn unregister;
226 public void* user_data;
228 [CCode (cheader_filename = "libsoup/soup.h")]
229 public class ServerMessage : Soup.Message {
230 public void finish ();
231 public Soup.TransferEncoding get_encoding ();
232 public unowned Soup.Server get_server ();
233 public bool is_finished ();
234 public bool is_started ();
235 [CCode (has_construct_function = false)]
236 public ServerMessage (Soup.Server server);
237 public void set_encoding (Soup.TransferEncoding encoding);
238 public void start ();
240 [CCode (cheader_filename = "libsoup/soup.h")]
241 public class Session : GLib.Object, Soup.MessageFilter {
242 public weak Soup.MessageQueue queue;
243 public void abort ();
244 public void add_filter (Soup.MessageFilter filter);
245 public virtual void cancel_message (Soup.Message msg);
246 public unowned GLib.MainContext get_async_context ();
247 public unowned Soup.Connection get_connection (Soup.Message msg, bool try_pruning, bool is_new);
248 public virtual void queue_message (owned Soup.Message msg, Soup.MessageCallbackFn callback);
249 public void remove_filter (Soup.MessageFilter filter);
250 public virtual void requeue_message (Soup.Message msg);
251 public virtual uint send_message (Soup.Message msg);
252 public bool try_prune_connection ();
253 public void* async_context { get; construct; }
255 public int max_conns { get; set; }
257 public int max_conns_per_host { get; set; }
259 public void* proxy_uri { get; set; }
261 public string ssl_ca_file { owned get; set; }
263 public uint timeout { get; set; }
265 public bool use_ntlm { get; set; }
266 public virtual signal void authenticate (Soup.Message p0, string auth_type, string auth_realm, void* username, void* password);
267 public virtual signal void reauthenticate (Soup.Message p0, string auth_type, string auth_realm, void* username, void* password);
269 [CCode (cheader_filename = "libsoup/soup.h")]
270 public class SessionAsync : Soup.Session, Soup.MessageFilter {
271 [CCode (type = "SoupSession*", has_construct_function = false)]
272 public SessionAsync ();
273 [CCode (type = "SoupSession*", has_construct_function = false)]
274 public SessionAsync.with_options (string optname1);
276 [CCode (cheader_filename = "libsoup/soup.h")]
277 public class SessionSync : Soup.Session, Soup.MessageFilter {
278 [CCode (type = "SoupSession*", has_construct_function = false)]
279 public SessionSync ();
280 [CCode (type = "SoupSession*", has_construct_function = false)]
281 public SessionSync.with_options (string optname1);
284 [CCode (cheader_filename = "libsoup/soup.h")]
285 public class SoapParameter {
286 public unowned Soup.SoapParameter get_first_child ();
287 public unowned Soup.SoapParameter get_first_child_by_name (string name);
288 public int get_int_value ();
289 public unowned string get_name ();
290 public unowned Soup.SoapParameter get_next_child ();
291 public unowned Soup.SoapParameter get_next_child_by_name (string name);
292 public unowned string get_property (string prop_name);
293 public unowned string get_string_value ();
295 [CCode (cheader_filename = "libsoup/soup.h")]
296 public class Socket : GLib.Object {
297 public static unowned Soup.Socket client_new_async (string hostname, uint port, void* ssl_creds, Soup.SocketCallback callback);
298 public static unowned Soup.Socket client_new_sync (string hostname, uint port, void* ssl_creds, uint status_ret);
299 public uint connect (Soup.Address remote_addr);
300 public void disconnect ();
301 public unowned Soup.Address get_local_address ();
302 public unowned Soup.Address get_remote_address ();
303 public bool is_connected ();
304 public bool listen (Soup.Address local_addr);
305 [CCode (has_construct_function = false)]
306 public Socket (string optname1);
307 public Soup.SocketIOStatus read (void* buffer, size_t len, size_t nread);
308 public Soup.SocketIOStatus read_until (void* buffer, size_t len, void* boundary, size_t boundary_len, size_t nread, bool got_boundary);
309 public static unowned Soup.Socket server_new (Soup.Address local_addr, void* ssl_creds, Soup.SocketListenerCallback callback);
310 public bool start_proxy_ssl (string ssl_host);
311 public bool start_ssl ();
312 public Soup.SocketIOStatus write (void* buffer, size_t len, size_t nwrote);
314 public void* async_context { get; construct; }
316 public bool cloexec { get; set; }
318 public bool is_server { get; }
320 public bool nodelay { get; set; }
322 public bool non_blocking { get; set; }
324 public bool reuseaddr { get; set; }
326 public void* ssl_creds { get; set; }
328 public uint timeout { get; set; }
329 public virtual signal void connect_result (int p0);
330 public virtual signal void disconnected ();
331 public virtual signal void new_connection (Soup.Socket p0);
332 public virtual signal void readable ();
333 public virtual signal void writable ();
336 [CCode (copy_function = "soup_uri_copy", cheader_filename = "libsoup/soup.h")]
338 public bool broken_encoding;
339 public weak string fragment;
340 public weak string host;
341 public weak string passwd;
342 public weak string path;
344 public weak Soup.Protocol protocol;
345 public weak string query;
346 public weak string user;
347 public unowned Soup.Uri copy ();
348 public unowned Soup.Uri copy_root ();
349 public static void decode (string part);
350 public static string encode (string part, string escape_extra);
351 public bool equal (Soup.Uri uri2);
352 [CCode (has_construct_function = false)]
353 public Uri (string uri_string);
354 public unowned string to_string (bool just_path);
355 public bool uses_default_port ();
356 [CCode (has_construct_function = false)]
357 public Uri.with_base (Soup.Uri @base, string uri_string);
360 [CCode (cheader_filename = "libsoup/soup.h")]
361 public class XmlrpcValue {
362 public bool array_get_iterator (out unowned Soup.XmlrpcValueArrayIterator iter);
364 public bool get_base64 (out unowned GLib.ByteArray data);
365 public bool get_boolean (bool b);
366 public bool get_datetime (ulong timeval);
367 public bool get_double (double b);
368 public bool get_int (long i);
369 public bool get_string (out unowned string str);
370 public bool get_struct (GLib.HashTable table);
373 [CCode (cheader_filename = "libsoup/soup.h")]
374 public class XmlrpcValueArrayIterator {
375 public bool get_value (out unowned Soup.XmlrpcValue value);
376 public unowned Soup.XmlrpcValueArrayIterator next ();
377 public unowned Soup.XmlrpcValueArrayIterator prev ();
379 [CCode (cheader_filename = "libsoup/soup.h")]
380 public interface MessageFilter {
381 public abstract void setup_message (Soup.Message msg);
383 [CCode (type_id = "SOUP_TYPE_DATA_BUFFER", cheader_filename = "libsoup/soup.h")]
384 public struct DataBuffer {
385 public Soup.Ownership owner;
389 [CCode (cprefix = "SOUP_ADDRESS_FAMILY_", has_type_id = "0", cheader_filename = "libsoup/soup.h")]
390 public enum AddressFamily {
394 [CCode (cprefix = "SOUP_AUTH_TYPE_", has_type_id = "0", cheader_filename = "libsoup/soup.h")]
395 public enum AuthType {
399 [CCode (cprefix = "SOUP_ALGORITHM_", has_type_id = "0", cheader_filename = "libsoup/soup.h")]
400 public enum DigestAlgorithm {
404 [CCode (cprefix = "SOUP_HANDLER_", has_type_id = "0", cheader_filename = "libsoup/soup.h")]
405 public enum HandlerPhase {
411 [CCode (cprefix = "SOUP_HTTP_", has_type_id = "0", cheader_filename = "libsoup/soup.h")]
412 public enum HttpVersion {
416 [CCode (cprefix = "SOUP_STATUS_", has_type_id = "0", cheader_filename = "libsoup/soup.h")]
417 public enum KnownStatusCode {
446 NOT_APPEARING_IN_THIS_PROTOCOL,
455 PROXY_AUTHENTICATION_REQUIRED,
462 REQUEST_ENTITY_TOO_LARGE,
463 REQUEST_URI_TOO_LONG,
464 UNSUPPORTED_MEDIA_TYPE,
465 REQUESTED_RANGE_NOT_SATISFIABLE,
468 UNPROCESSABLE_ENTITY,
471 INTERNAL_SERVER_ERROR,
476 HTTP_VERSION_NOT_SUPPORTED,
477 INSUFFICIENT_STORAGE,
480 [CCode (cprefix = "SOUP_MESSAGE_", has_type_id = "0", cheader_filename = "libsoup/soup.h")]
481 public enum MessageFlags {
486 [CCode (cprefix = "SOUP_MESSAGE_STATUS_", has_type_id = "0", cheader_filename = "libsoup/soup.h")]
487 public enum MessageStatus {
494 [CCode (cprefix = "SOUP_METHOD_ID_", has_type_id = "0", cheader_filename = "libsoup/soup.h")]
495 public enum MethodId {
514 [CCode (cprefix = "SOUP_BUFFER_", has_type_id = "0", cheader_filename = "libsoup/soup.h")]
515 public enum Ownership {
520 [CCode (cprefix = "SOUP_SOCKET_", has_type_id = "0", cheader_filename = "libsoup/soup.h")]
521 public enum SocketIOStatus {
527 [CCode (cprefix = "SOUP_STATUS_CLASS_", has_type_id = "0", cheader_filename = "libsoup/soup.h")]
528 public enum StatusClass {
536 [CCode (cprefix = "SOUP_TRANSFER_", has_type_id = "0", cheader_filename = "libsoup/soup.h")]
537 public enum TransferEncoding {
545 [CCode (cprefix = "SOUP_XMLRPC_VALUE_TYPE_", has_type_id = "0", cheader_filename = "libsoup/soup.h")]
546 public enum XmlrpcValueType {
557 [CCode (cheader_filename = "libsoup/soup.h")]
558 public delegate void AddressCallback (Soup.Address addr, uint status);
559 [CCode (cheader_filename = "libsoup/soup.h")]
560 public delegate void ConnectionCallback (Soup.Connection conn, uint status);
561 [CCode (cheader_filename = "libsoup/soup.h")]
562 public delegate void MessageCallbackFn (Soup.Message req);
563 [CCode (cheader_filename = "libsoup/soup.h")]
564 public delegate bool ServerAuthCallbackFn (Soup.ServerAuthContext auth_ctx, Soup.ServerAuth auth, Soup.Message msg);
565 [CCode (cheader_filename = "libsoup/soup.h")]
566 public delegate void ServerCallbackFn (Soup.ServerContext context, Soup.Message msg);
567 [CCode (cheader_filename = "libsoup/soup.h")]
568 public delegate void ServerUnregisterFn (Soup.Server server, Soup.ServerHandler handler);
569 [CCode (cheader_filename = "libsoup/soup.h")]
570 public delegate void SocketCallback (Soup.Socket sock, uint status);
571 [CCode (cheader_filename = "libsoup/soup.h")]
572 public delegate void SocketListenerCallback (Soup.Socket listener, Soup.Socket sock);
573 [CCode (cheader_filename = "libsoup/soup.h")]
574 public const int ADDRESS_ANY_PORT;
575 [CCode (cheader_filename = "libsoup/soup.h")]
576 public const string CONNECTION_ASYNC_CONTEXT;
577 [CCode (cheader_filename = "libsoup/soup.h")]
578 public const int CONNECTION_H;
579 [CCode (cheader_filename = "libsoup/soup.h")]
580 public const string CONNECTION_MESSAGE_FILTER;
581 [CCode (cheader_filename = "libsoup/soup.h")]
582 public const string CONNECTION_ORIGIN_URI;
583 [CCode (cheader_filename = "libsoup/soup.h")]
584 public const string CONNECTION_PROXY_URI;
585 [CCode (cheader_filename = "libsoup/soup.h")]
586 public const string CONNECTION_SSL_CREDENTIALS;
587 [CCode (cheader_filename = "libsoup/soup.h")]
588 public const string CONNECTION_TIMEOUT;
589 [CCode (cheader_filename = "libsoup/soup.h")]
590 public const int DATE_H;
591 [CCode (cheader_filename = "libsoup/soup.h")]
593 [CCode (cheader_filename = "libsoup/soup.h")]
594 public const int HEADERS_H;
595 [CCode (cheader_filename = "libsoup/soup.h")]
596 public const int MESSAGE_FILTER_H;
597 [CCode (cheader_filename = "libsoup/soup.h")]
598 public const int MESSAGE_H;
599 [CCode (cheader_filename = "libsoup/soup.h")]
600 public const int MESSAGE_QUEUE_H;
601 [CCode (cheader_filename = "libsoup/soup.h")]
602 public const string METHOD_CONNECT;
603 [CCode (cheader_filename = "libsoup/soup.h")]
604 public const string METHOD_COPY;
605 [CCode (cheader_filename = "libsoup/soup.h")]
606 public const string METHOD_DELETE;
607 [CCode (cheader_filename = "libsoup/soup.h")]
608 public const string METHOD_GET;
609 [CCode (cheader_filename = "libsoup/soup.h")]
610 public const int METHOD_H;
611 [CCode (cheader_filename = "libsoup/soup.h")]
612 public const string METHOD_HEAD;
613 [CCode (cheader_filename = "libsoup/soup.h")]
614 public const string METHOD_LOCK;
615 [CCode (cheader_filename = "libsoup/soup.h")]
616 public const string METHOD_MKCOL;
617 [CCode (cheader_filename = "libsoup/soup.h")]
618 public const string METHOD_MOVE;
619 [CCode (cheader_filename = "libsoup/soup.h")]
620 public const string METHOD_OPTIONS;
621 [CCode (cheader_filename = "libsoup/soup.h")]
622 public const string METHOD_PATCH;
623 [CCode (cheader_filename = "libsoup/soup.h")]
624 public const string METHOD_POST;
625 [CCode (cheader_filename = "libsoup/soup.h")]
626 public const string METHOD_PROPFIND;
627 [CCode (cheader_filename = "libsoup/soup.h")]
628 public const string METHOD_PROPPATCH;
629 [CCode (cheader_filename = "libsoup/soup.h")]
630 public const string METHOD_PUT;
631 [CCode (cheader_filename = "libsoup/soup.h")]
632 public const string METHOD_TRACE;
633 [CCode (cheader_filename = "libsoup/soup.h")]
634 public const string METHOD_UNLOCK;
635 [CCode (cheader_filename = "libsoup/soup.h")]
636 public const int MISC_H;
637 [CCode (cheader_filename = "libsoup/soup.h")]
638 public const string SERVER_ASYNC_CONTEXT;
639 [CCode (cheader_filename = "libsoup/soup.h")]
640 public const int SERVER_AUTH_H;
641 [CCode (cheader_filename = "libsoup/soup.h")]
642 public const int SERVER_H;
643 [CCode (cheader_filename = "libsoup/soup.h")]
644 public const string SERVER_INTERFACE;
645 [CCode (cheader_filename = "libsoup/soup.h")]
646 public const int SERVER_MESSAGE_H;
647 [CCode (cheader_filename = "libsoup/soup.h")]
648 public const string SERVER_PORT;
649 [CCode (cheader_filename = "libsoup/soup.h")]
650 public const string SERVER_SSL_CERT_FILE;
651 [CCode (cheader_filename = "libsoup/soup.h")]
652 public const string SERVER_SSL_KEY_FILE;
653 [CCode (cheader_filename = "libsoup/soup.h")]
654 public const string SESSION_ASYNC_CONTEXT;
655 [CCode (cheader_filename = "libsoup/soup.h")]
656 public const int SESSION_ASYNC_H;
657 [CCode (cheader_filename = "libsoup/soup.h")]
658 public const int SESSION_H;
659 [CCode (cheader_filename = "libsoup/soup.h")]
660 public const string SESSION_MAX_CONNS;
661 [CCode (cheader_filename = "libsoup/soup.h")]
662 public const string SESSION_MAX_CONNS_PER_HOST;
663 [CCode (cheader_filename = "libsoup/soup.h")]
664 public const string SESSION_PROXY_URI;
665 [CCode (cheader_filename = "libsoup/soup.h")]
666 public const string SESSION_SSL_CA_FILE;
667 [CCode (cheader_filename = "libsoup/soup.h")]
668 public const int SESSION_SYNC_H;
669 [CCode (cheader_filename = "libsoup/soup.h")]
670 public const string SESSION_TIMEOUT;
671 [CCode (cheader_filename = "libsoup/soup.h")]
672 public const string SESSION_USE_NTLM;
673 [CCode (cheader_filename = "libsoup/soup.h")]
674 public const int SOAP_MESSAGE_H;
675 [CCode (cheader_filename = "libsoup/soup.h")]
676 public const string SOCKET_ASYNC_CONTEXT;
677 [CCode (cheader_filename = "libsoup/soup.h")]
678 public const string SOCKET_FLAG_CLOEXEC;
679 [CCode (cheader_filename = "libsoup/soup.h")]
680 public const string SOCKET_FLAG_NODELAY;
681 [CCode (cheader_filename = "libsoup/soup.h")]
682 public const string SOCKET_FLAG_NONBLOCKING;
683 [CCode (cheader_filename = "libsoup/soup.h")]
684 public const string SOCKET_FLAG_REUSEADDR;
685 [CCode (cheader_filename = "libsoup/soup.h")]
686 public const int SOCKET_H;
687 [CCode (cheader_filename = "libsoup/soup.h")]
688 public const string SOCKET_IS_SERVER;
689 [CCode (cheader_filename = "libsoup/soup.h")]
690 public const string SOCKET_SSL_CREDENTIALS;
691 [CCode (cheader_filename = "libsoup/soup.h")]
692 public const string SOCKET_TIMEOUT;
693 [CCode (cheader_filename = "libsoup/soup.h")]
694 public const int STATUS_H;
695 [CCode (cheader_filename = "libsoup/soup.h")]
696 public const int TYPES_H;
697 [CCode (cheader_filename = "libsoup/soup.h")]
698 public const int URI_H;
699 [CCode (cheader_filename = "libsoup/soup.h")]
700 public static unowned GLib.TimeoutSource add_idle (GLib.MainContext async_context, GLib.SourceFunc function, void* data);
701 [CCode (cheader_filename = "libsoup/soup.h")]
702 public static unowned GLib.TimeoutSource add_timeout (GLib.MainContext async_context, uint interval, GLib.SourceFunc function, void* data);
703 [CCode (cheader_filename = "libsoup/soup.h")]
704 public static unowned string base64_decode (string text, int out_len);
705 [CCode (cheader_filename = "libsoup/soup.h")]
706 public static int base64_decode_step (uchar[] @in, int len, uchar[] @out, int state, uint save);
707 [CCode (cheader_filename = "libsoup/soup.h")]
708 public static unowned string base64_encode (string text, int len);
709 [CCode (cheader_filename = "libsoup/soup.h")]
710 public static int base64_encode_close (uchar[] @in, int inlen, bool break_lines, uchar[] @out, int state, int save);
711 [CCode (cheader_filename = "libsoup/soup.h")]
712 public static int base64_encode_step (uchar[] @in, int len, bool break_lines, uchar[] @out, int state, int save);
713 [CCode (cheader_filename = "libsoup/soup.h")]
714 public static unowned string date_generate (ulong when);
715 [CCode (cheader_filename = "libsoup/soup.h")]
716 public static ulong date_iso8601_parse (string timestamp);
717 [CCode (cheader_filename = "libsoup/soup.h")]
718 public static ulong date_parse (string timestamp);
719 [CCode (cheader_filename = "libsoup/soup.h")]
720 public static void gmtime (ulong when, void* tm);
721 [CCode (cheader_filename = "libsoup/soup.h")]
722 public static unowned string header_param_copy_token (GLib.HashTable tokens, string t);
723 [CCode (cheader_filename = "libsoup/soup.h")]
724 public static unowned string header_param_decode_token (out unowned string @in);
725 [CCode (cheader_filename = "libsoup/soup.h")]
726 public static void header_param_destroy_hash (GLib.HashTable table);
727 [CCode (cheader_filename = "libsoup/soup.h")]
728 public static unowned GLib.HashTable header_param_parse_list (string header);
729 [CCode (cheader_filename = "libsoup/soup.h")]
730 public static bool headers_parse_request (string str, int len, GLib.HashTable dest, out unowned string req_method, out unowned string req_path, Soup.HttpVersion ver);
731 [CCode (cheader_filename = "libsoup/soup.h")]
732 public static bool headers_parse_response (string str, int len, GLib.HashTable dest, Soup.HttpVersion ver, uint status_code, out unowned string reason_phrase);
733 [CCode (cheader_filename = "libsoup/soup.h")]
734 public static bool headers_parse_status_line (string status_line, Soup.HttpVersion ver, uint status_code, out unowned string reason_phrase);
735 [CCode (cheader_filename = "libsoup/soup.h")]
736 public static Soup.MethodId method_get_id (string method);
737 [CCode (cheader_filename = "libsoup/soup.h")]
738 public static uint signal_connect_once (void* instance, string detailed_signal, GLib.Callback c_handler, void* data);
739 [CCode (cheader_filename = "libsoup/soup.h")]
740 public static unowned string status_get_phrase (uint status_code);
741 [CCode (cheader_filename = "libsoup/soup.h")]
742 public static bool str_case_equal (void* v1, void* v2);
743 [CCode (cheader_filename = "libsoup/soup.h")]
744 public static uint str_case_hash (void* key);