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