1 /* libsoup-2.2.vapi generated by vapigen, do not modify. */
3 [Version (replacement = "libsoup-2.4")]
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 unowned string get_name ();
12 public unowned string get_physical ();
13 public uint get_port ();
14 public void* get_sockaddr (int len);
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 [CCode (has_construct_function = false)]
23 public Connection (string propname1);
24 public void connect_async (Soup.ConnectionCallback callback);
25 public uint connect_sync ();
26 public void disconnect ();
27 public bool is_in_use ();
28 public ulong last_used ();
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 [CCode (has_construct_function = false)]
62 public Message (string method, string uri_string);
63 public void add_chunk (Soup.Ownership owner, owned string body, uint length);
64 public void add_final_chunk ();
65 public void add_handler (Soup.HandlerPhase phase, Soup.MessageCallbackFn handler_cb);
66 public static void add_header (GLib.HashTable hash, string name, string value);
67 public void add_header_handler (string header, Soup.HandlerPhase phase, Soup.MessageCallbackFn handler_cb);
68 public void add_status_class_handler (Soup.StatusClass status_class, Soup.HandlerPhase phase, Soup.MessageCallbackFn handler_cb);
69 public void add_status_code_handler (uint status_code, Soup.HandlerPhase phase, Soup.MessageCallbackFn handler_cb);
70 public static void clear_headers (GLib.HashTable hash);
71 [CCode (has_construct_function = false)]
72 public Message.from_uri (string method, Soup.Uri uri);
73 public uint get_flags ();
74 public static unowned string get_header (GLib.HashTable hash, string name);
75 public static unowned GLib.SList get_header_list (GLib.HashTable hash, string name);
76 public Soup.HttpVersion get_http_version ();
77 public Soup.TransferEncoding get_request_encoding (uint content_length);
78 public Soup.TransferEncoding get_response_encoding (uint content_length);
79 public unowned Soup.Uri get_uri ();
80 public bool io_in_progress ();
81 public void io_pause ();
82 public void io_stop ();
83 public void io_unpause ();
84 public bool is_keepalive ();
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 ();
117 [CCode (cheader_filename = "libsoup/soup.h", free_function = "soup_message_queue_destroy")]
119 public class MessageQueue {
120 [CCode (has_construct_function = false)]
121 public MessageQueue ();
122 public void append (Soup.Message msg);
123 public unowned Soup.Message first (Soup.MessageQueueIter iter);
124 public void free_iter (Soup.MessageQueueIter iter);
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);
129 [CCode (cheader_filename = "libsoup/soup.h")]
131 public class MessageQueueIter {
132 public weak GLib.List cur;
133 public weak GLib.List next;
135 [CCode (cheader_filename = "libsoup/soup.h")]
137 public class Protocol {
139 [CCode (cheader_filename = "libsoup/soup.h")]
140 public class Server : GLib.Object {
141 [CCode (has_construct_function = false)]
142 public Server (string optname1, ...);
143 public void add_handler (string path, Soup.ServerAuthContext auth_ctx, Soup.ServerCallbackFn callback, Soup.ServerUnregisterFn unreg, void* data);
144 public unowned GLib.MainContext get_async_context ();
145 public unowned Soup.ServerHandler get_handler (string path);
146 public unowned Soup.Socket get_listener ();
147 public uint get_port ();
148 public unowned Soup.Protocol get_protocol ();
149 public unowned GLib.SList list_handlers ();
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; }
163 [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 [CCode (has_construct_function = false)]
170 public ServerAuth (Soup.ServerAuthContext auth_ctx, GLib.SList auth_hdrs, Soup.Message msg);
171 public bool check_passwd (string passwd);
172 public unowned string get_user ();
174 [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;
181 [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);
191 [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;
206 [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 ();
219 [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 [CCode (has_construct_function = false)]
231 public ServerMessage (Soup.Server server);
232 public void finish ();
233 public Soup.TransferEncoding get_encoding ();
234 public unowned Soup.Server get_server ();
235 public bool is_finished ();
236 public bool is_started ();
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 [CCode (has_construct_function = false)]
244 protected Session ();
245 public void abort ();
246 public void add_filter (Soup.MessageFilter filter);
247 public virtual void cancel_message (Soup.Message msg);
248 public unowned GLib.MainContext get_async_context ();
249 public unowned Soup.Connection get_connection (Soup.Message msg, bool try_pruning, bool is_new);
250 public virtual void queue_message (owned Soup.Message msg, Soup.MessageCallbackFn callback);
251 public void remove_filter (Soup.MessageFilter filter);
252 public virtual void requeue_message (Soup.Message msg);
253 public virtual uint send_message (Soup.Message msg);
254 public bool try_prune_connection ();
255 public void* async_context { get; construct; }
257 public int max_conns { get; set; }
259 public int max_conns_per_host { get; set; }
261 public void* proxy_uri { get; set; }
263 public string ssl_ca_file { owned get; set; }
265 public uint timeout { get; set; }
267 public bool use_ntlm { get; set; }
268 public virtual signal void authenticate (Soup.Message p0, string auth_type, string auth_realm, void* username, void* password);
269 public virtual signal void reauthenticate (Soup.Message p0, string auth_type, string auth_realm, void* username, void* password);
271 [CCode (cheader_filename = "libsoup/soup.h")]
272 public class SessionAsync : Soup.Session, Soup.MessageFilter {
273 [CCode (has_construct_function = false, type = "SoupSession*")]
274 public SessionAsync ();
275 [CCode (has_construct_function = false, type = "SoupSession*")]
276 public SessionAsync.with_options (string optname1);
278 [CCode (cheader_filename = "libsoup/soup.h")]
279 public class SessionSync : Soup.Session, Soup.MessageFilter {
280 [CCode (has_construct_function = false, type = "SoupSession*")]
281 public SessionSync ();
282 [CCode (has_construct_function = false, type = "SoupSession*")]
283 public SessionSync.with_options (string optname1);
285 [CCode (cheader_filename = "libsoup/soup.h")]
287 public class SoapParameter {
288 public unowned Soup.SoapParameter get_first_child ();
289 public unowned Soup.SoapParameter get_first_child_by_name (string name);
290 public int get_int_value ();
291 public unowned string get_name ();
292 public unowned Soup.SoapParameter get_next_child ();
293 public unowned Soup.SoapParameter get_next_child_by_name (string name);
294 public unowned string get_property (string prop_name);
295 public unowned string get_string_value ();
297 [CCode (cheader_filename = "libsoup/soup.h")]
298 public class Socket : GLib.Object {
299 [CCode (has_construct_function = false)]
300 public Socket (string optname1);
301 public static unowned Soup.Socket client_new_async (string hostname, uint port, void* ssl_creds, Soup.SocketCallback callback);
302 public static unowned Soup.Socket client_new_sync (string hostname, uint port, void* ssl_creds, uint status_ret);
303 public uint connect (Soup.Address remote_addr);
304 public void disconnect ();
305 public unowned Soup.Address get_local_address ();
306 public unowned Soup.Address get_remote_address ();
307 public bool is_connected ();
308 public bool listen (Soup.Address local_addr);
309 public Soup.SocketIOStatus read (void* buffer, size_t len, size_t nread);
310 public Soup.SocketIOStatus read_until (void* buffer, size_t len, void* boundary, size_t boundary_len, size_t nread, bool got_boundary);
311 public static unowned Soup.Socket server_new (Soup.Address local_addr, void* ssl_creds, Soup.SocketListenerCallback callback);
312 public bool start_proxy_ssl (string ssl_host);
313 public bool start_ssl ();
314 public Soup.SocketIOStatus write (void* buffer, size_t len, size_t nwrote);
316 public void* async_context { get; construct; }
318 public bool cloexec { get; set; }
320 public bool is_server { get; }
322 public bool nodelay { get; set; }
324 public bool non_blocking { get; set; }
326 public bool reuseaddr { get; set; }
328 public void* ssl_creds { get; set; }
330 public uint timeout { get; set; }
331 public virtual signal void connect_result (int p0);
332 public virtual signal void disconnected ();
333 public virtual signal void new_connection (Soup.Socket p0);
334 public virtual signal void readable ();
335 public virtual signal void writable ();
337 [CCode (cheader_filename = "libsoup/soup.h", copy_function = "soup_uri_copy")]
340 public bool broken_encoding;
341 public weak string fragment;
342 public weak string host;
343 public weak string passwd;
344 public weak string path;
346 public weak Soup.Protocol protocol;
347 public weak string query;
348 public weak string user;
349 [CCode (has_construct_function = false)]
350 public Uri (string uri_string);
351 public Soup.Uri copy ();
352 public unowned Soup.Uri copy_root ();
353 public static void decode (string part);
354 public static string encode (string part, string escape_extra);
355 public bool equal (Soup.Uri uri2);
356 public unowned string to_string (bool just_path);
357 public bool uses_default_port ();
358 [CCode (has_construct_function = false)]
359 public Uri.with_base (Soup.Uri @base, string uri_string);
361 [CCode (cheader_filename = "libsoup/soup.h")]
363 public class XmlrpcValue {
364 public bool array_get_iterator (out unowned Soup.XmlrpcValueArrayIterator iter);
366 public bool get_base64 (out unowned GLib.ByteArray data);
367 public bool get_boolean (bool b);
368 public bool get_datetime (ulong timeval);
369 public bool get_double (double b);
370 public bool get_int (long i);
371 public bool get_string (out unowned string str);
372 public bool get_struct (GLib.HashTable table);
374 [CCode (cheader_filename = "libsoup/soup.h")]
376 public class XmlrpcValueArrayIterator {
377 public bool get_value (out unowned Soup.XmlrpcValue value);
378 public unowned Soup.XmlrpcValueArrayIterator next ();
379 public unowned Soup.XmlrpcValueArrayIterator prev ();
381 [CCode (cheader_filename = "libsoup/soup.h")]
382 public interface MessageFilter {
383 public abstract void setup_message (Soup.Message msg);
385 [CCode (cheader_filename = "libsoup/soup.h")]
386 public struct DataBuffer {
387 public Soup.Ownership owner;
391 [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_ADDRESS_FAMILY_", has_type_id = false)]
392 public enum AddressFamily {
396 [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_AUTH_TYPE_", has_type_id = false)]
397 public enum AuthType {
401 [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_ALGORITHM_", has_type_id = false)]
402 public enum DigestAlgorithm {
406 [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_HANDLER_", has_type_id = false)]
407 public enum HandlerPhase {
413 [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_HTTP_", has_type_id = false)]
414 public enum HttpVersion {
418 [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_STATUS_", has_type_id = false)]
419 public enum KnownStatusCode {
448 NOT_APPEARING_IN_THIS_PROTOCOL,
457 PROXY_AUTHENTICATION_REQUIRED,
464 REQUEST_ENTITY_TOO_LARGE,
465 REQUEST_URI_TOO_LONG,
466 UNSUPPORTED_MEDIA_TYPE,
467 REQUESTED_RANGE_NOT_SATISFIABLE,
470 UNPROCESSABLE_ENTITY,
473 INTERNAL_SERVER_ERROR,
478 HTTP_VERSION_NOT_SUPPORTED,
479 INSUFFICIENT_STORAGE,
482 [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_MESSAGE_", has_type_id = false)]
483 public enum MessageFlags {
488 [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_MESSAGE_STATUS_", has_type_id = false)]
489 public enum MessageStatus {
496 [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_METHOD_ID_", has_type_id = false)]
497 public enum MethodId {
516 [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_BUFFER_", has_type_id = false)]
517 public enum Ownership {
522 [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_SOCKET_", has_type_id = false)]
523 public enum SocketIOStatus {
529 [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_STATUS_CLASS_", has_type_id = false)]
530 public enum StatusClass {
538 [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_TRANSFER_", has_type_id = false)]
539 public enum TransferEncoding {
547 [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_XMLRPC_VALUE_TYPE_", has_type_id = false)]
548 public enum XmlrpcValueType {
559 [CCode (cheader_filename = "libsoup/soup.h")]
560 public delegate void AddressCallback (Soup.Address addr, uint status);
561 [CCode (cheader_filename = "libsoup/soup.h")]
562 public delegate void ConnectionCallback (Soup.Connection conn, uint status);
563 [CCode (cheader_filename = "libsoup/soup.h")]
564 public delegate void MessageCallbackFn (Soup.Message req);
565 [CCode (cheader_filename = "libsoup/soup.h")]
566 public delegate bool ServerAuthCallbackFn (Soup.ServerAuthContext auth_ctx, Soup.ServerAuth auth, Soup.Message msg);
567 [CCode (cheader_filename = "libsoup/soup.h")]
568 public delegate void ServerCallbackFn (Soup.ServerContext context, Soup.Message msg);
569 [CCode (cheader_filename = "libsoup/soup.h")]
570 public delegate void ServerUnregisterFn (Soup.Server server, Soup.ServerHandler handler);
571 [CCode (cheader_filename = "libsoup/soup.h")]
572 public delegate void SocketCallback (Soup.Socket sock, uint status);
573 [CCode (cheader_filename = "libsoup/soup.h")]
574 public delegate void SocketListenerCallback (Soup.Socket listener, Soup.Socket sock);
575 [CCode (cheader_filename = "libsoup/soup.h")]
576 public const int ADDRESS_ANY_PORT;
577 [CCode (cheader_filename = "libsoup/soup.h")]
578 public const string CONNECTION_ASYNC_CONTEXT;
579 [CCode (cheader_filename = "libsoup/soup.h")]
580 public const int CONNECTION_H;
581 [CCode (cheader_filename = "libsoup/soup.h")]
582 public const string CONNECTION_MESSAGE_FILTER;
583 [CCode (cheader_filename = "libsoup/soup.h")]
584 public const string CONNECTION_ORIGIN_URI;
585 [CCode (cheader_filename = "libsoup/soup.h")]
586 public const string CONNECTION_PROXY_URI;
587 [CCode (cheader_filename = "libsoup/soup.h")]
588 public const string CONNECTION_SSL_CREDENTIALS;
589 [CCode (cheader_filename = "libsoup/soup.h")]
590 public const string CONNECTION_TIMEOUT;
591 [CCode (cheader_filename = "libsoup/soup.h")]
592 public const int DATE_H;
593 [CCode (cheader_filename = "libsoup/soup.h")]
595 [CCode (cheader_filename = "libsoup/soup.h")]
596 public const int HEADERS_H;
597 [CCode (cheader_filename = "libsoup/soup.h")]
598 public const int MESSAGE_FILTER_H;
599 [CCode (cheader_filename = "libsoup/soup.h")]
600 public const int MESSAGE_H;
601 [CCode (cheader_filename = "libsoup/soup.h")]
602 public const int MESSAGE_QUEUE_H;
603 [CCode (cheader_filename = "libsoup/soup.h")]
604 public const string METHOD_CONNECT;
605 [CCode (cheader_filename = "libsoup/soup.h")]
606 public const string METHOD_COPY;
607 [CCode (cheader_filename = "libsoup/soup.h")]
608 public const string METHOD_DELETE;
609 [CCode (cheader_filename = "libsoup/soup.h")]
610 public const string METHOD_GET;
611 [CCode (cheader_filename = "libsoup/soup.h")]
612 public const int METHOD_H;
613 [CCode (cheader_filename = "libsoup/soup.h")]
614 public const string METHOD_HEAD;
615 [CCode (cheader_filename = "libsoup/soup.h")]
616 public const string METHOD_LOCK;
617 [CCode (cheader_filename = "libsoup/soup.h")]
618 public const string METHOD_MKCOL;
619 [CCode (cheader_filename = "libsoup/soup.h")]
620 public const string METHOD_MOVE;
621 [CCode (cheader_filename = "libsoup/soup.h")]
622 public const string METHOD_OPTIONS;
623 [CCode (cheader_filename = "libsoup/soup.h")]
624 public const string METHOD_PATCH;
625 [CCode (cheader_filename = "libsoup/soup.h")]
626 public const string METHOD_POST;
627 [CCode (cheader_filename = "libsoup/soup.h")]
628 public const string METHOD_PROPFIND;
629 [CCode (cheader_filename = "libsoup/soup.h")]
630 public const string METHOD_PROPPATCH;
631 [CCode (cheader_filename = "libsoup/soup.h")]
632 public const string METHOD_PUT;
633 [CCode (cheader_filename = "libsoup/soup.h")]
634 public const string METHOD_TRACE;
635 [CCode (cheader_filename = "libsoup/soup.h")]
636 public const string METHOD_UNLOCK;
637 [CCode (cheader_filename = "libsoup/soup.h")]
638 public const int MISC_H;
639 [CCode (cheader_filename = "libsoup/soup.h")]
640 public const string SERVER_ASYNC_CONTEXT;
641 [CCode (cheader_filename = "libsoup/soup.h")]
642 public const int SERVER_AUTH_H;
643 [CCode (cheader_filename = "libsoup/soup.h")]
644 public const int SERVER_H;
645 [CCode (cheader_filename = "libsoup/soup.h")]
646 public const string SERVER_INTERFACE;
647 [CCode (cheader_filename = "libsoup/soup.h")]
648 public const int SERVER_MESSAGE_H;
649 [CCode (cheader_filename = "libsoup/soup.h")]
650 public const string SERVER_PORT;
651 [CCode (cheader_filename = "libsoup/soup.h")]
652 public const string SERVER_SSL_CERT_FILE;
653 [CCode (cheader_filename = "libsoup/soup.h")]
654 public const string SERVER_SSL_KEY_FILE;
655 [CCode (cheader_filename = "libsoup/soup.h")]
656 public const string SESSION_ASYNC_CONTEXT;
657 [CCode (cheader_filename = "libsoup/soup.h")]
658 public const int SESSION_ASYNC_H;
659 [CCode (cheader_filename = "libsoup/soup.h")]
660 public const int SESSION_H;
661 [CCode (cheader_filename = "libsoup/soup.h")]
662 public const string SESSION_MAX_CONNS;
663 [CCode (cheader_filename = "libsoup/soup.h")]
664 public const string SESSION_MAX_CONNS_PER_HOST;
665 [CCode (cheader_filename = "libsoup/soup.h")]
666 public const string SESSION_PROXY_URI;
667 [CCode (cheader_filename = "libsoup/soup.h")]
668 public const string SESSION_SSL_CA_FILE;
669 [CCode (cheader_filename = "libsoup/soup.h")]
670 public const int SESSION_SYNC_H;
671 [CCode (cheader_filename = "libsoup/soup.h")]
672 public const string SESSION_TIMEOUT;
673 [CCode (cheader_filename = "libsoup/soup.h")]
674 public const string SESSION_USE_NTLM;
675 [CCode (cheader_filename = "libsoup/soup.h")]
676 public const int SOAP_MESSAGE_H;
677 [CCode (cheader_filename = "libsoup/soup.h")]
678 public const string SOCKET_ASYNC_CONTEXT;
679 [CCode (cheader_filename = "libsoup/soup.h")]
680 public const string SOCKET_FLAG_CLOEXEC;
681 [CCode (cheader_filename = "libsoup/soup.h")]
682 public const string SOCKET_FLAG_NODELAY;
683 [CCode (cheader_filename = "libsoup/soup.h")]
684 public const string SOCKET_FLAG_NONBLOCKING;
685 [CCode (cheader_filename = "libsoup/soup.h")]
686 public const string SOCKET_FLAG_REUSEADDR;
687 [CCode (cheader_filename = "libsoup/soup.h")]
688 public const int SOCKET_H;
689 [CCode (cheader_filename = "libsoup/soup.h")]
690 public const string SOCKET_IS_SERVER;
691 [CCode (cheader_filename = "libsoup/soup.h")]
692 public const string SOCKET_SSL_CREDENTIALS;
693 [CCode (cheader_filename = "libsoup/soup.h")]
694 public const string SOCKET_TIMEOUT;
695 [CCode (cheader_filename = "libsoup/soup.h")]
696 public const int STATUS_H;
697 [CCode (cheader_filename = "libsoup/soup.h")]
698 public const int TYPES_H;
699 [CCode (cheader_filename = "libsoup/soup.h")]
700 public const int URI_H;
701 [CCode (cheader_filename = "libsoup/soup.h")]
702 public static unowned GLib.TimeoutSource add_idle (GLib.MainContext async_context, GLib.SourceFunc function, void* data);
703 [CCode (cheader_filename = "libsoup/soup.h")]
704 public static unowned GLib.TimeoutSource add_timeout (GLib.MainContext async_context, uint interval, GLib.SourceFunc function, void* data);
705 [CCode (cheader_filename = "libsoup/soup.h")]
706 public static unowned string base64_decode (string text, int out_len);
707 [CCode (cheader_filename = "libsoup/soup.h")]
708 public static int base64_decode_step (uchar[] @in, int len, uchar[] @out, int state, uint save);
709 [CCode (cheader_filename = "libsoup/soup.h")]
710 public static unowned string base64_encode (string text, int len);
711 [CCode (cheader_filename = "libsoup/soup.h")]
712 public static int base64_encode_close (uchar[] @in, int inlen, bool break_lines, uchar[] @out, int state, int save);
713 [CCode (cheader_filename = "libsoup/soup.h")]
714 public static int base64_encode_step (uchar[] @in, int len, bool break_lines, uchar[] @out, int state, int save);
715 [CCode (cheader_filename = "libsoup/soup.h")]
716 public static unowned string date_generate (ulong when);
717 [CCode (cheader_filename = "libsoup/soup.h")]
718 public static ulong date_iso8601_parse (string timestamp);
719 [CCode (cheader_filename = "libsoup/soup.h")]
720 public static ulong date_parse (string timestamp);
721 [CCode (cheader_filename = "libsoup/soup.h")]
722 public static void gmtime (ulong when, void* tm);
723 [CCode (cheader_filename = "libsoup/soup.h")]
724 public static unowned string header_param_copy_token (GLib.HashTable tokens, string t);
725 [CCode (cheader_filename = "libsoup/soup.h")]
726 public static unowned string header_param_decode_token (out unowned string @in);
727 [CCode (cheader_filename = "libsoup/soup.h")]
728 public static void header_param_destroy_hash (GLib.HashTable table);
729 [CCode (cheader_filename = "libsoup/soup.h")]
730 public static unowned GLib.HashTable header_param_parse_list (string header);
731 [CCode (cheader_filename = "libsoup/soup.h")]
732 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);
733 [CCode (cheader_filename = "libsoup/soup.h")]
734 public static bool headers_parse_response (string str, int len, GLib.HashTable dest, Soup.HttpVersion ver, uint status_code, out unowned string reason_phrase);
735 [CCode (cheader_filename = "libsoup/soup.h")]
736 public static bool headers_parse_status_line (string status_line, Soup.HttpVersion ver, uint status_code, out unowned string reason_phrase);
737 [CCode (cheader_filename = "libsoup/soup.h")]
738 public static Soup.MethodId method_get_id (string method);
739 [CCode (cheader_filename = "libsoup/soup.h")]
740 public static uint signal_connect_once (void* instance, string detailed_signal, GLib.Callback c_handler, void* data);
741 [CCode (cheader_filename = "libsoup/soup.h")]
742 public static unowned string status_get_phrase (uint status_code);
743 [CCode (cheader_filename = "libsoup/soup.h")]
744 public static bool str_case_equal (void* v1, void* v2);
745 [CCode (cheader_filename = "libsoup/soup.h")]
746 public static uint str_case_hash (void* key);