/usr/share/gir-1.0/Rest-0.7.gir is in librest-dev 0.8.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 | <?xml version="1.0"?>
<!-- This file was automatically generated from C sources - DO NOT EDIT!
To affect the contents of this file, edit the original C definitions,
and/or use gtk-doc annotations. -->
<repository version="1.2"
xmlns="http://www.gtk.org/introspection/core/1.0"
xmlns:c="http://www.gtk.org/introspection/c/1.0"
xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
<include name="GObject" version="2.0"/>
<include name="Gio" version="2.0"/>
<include name="Soup" version="2.4"/>
<package name="rest-0.7"/>
<c:include name="rest/oauth-proxy-call.h"/>
<c:include name="rest/oauth-proxy.h"/>
<c:include name="rest/oauth2-proxy-call.h"/>
<c:include name="rest/oauth2-proxy.h"/>
<c:include name="rest/rest-enum-types.h"/>
<c:include name="rest/rest-param.h"/>
<c:include name="rest/rest-params.h"/>
<c:include name="rest/rest-proxy-auth.h"/>
<c:include name="rest/rest-proxy-call.h"/>
<c:include name="rest/rest-proxy.h"/>
<c:include name="rest/rest-xml-node.h"/>
<c:include name="rest/rest-xml-parser.h"/>
<namespace name="Rest"
version="0.7"
shared-library="librest-0.7.so.0"
c:identifier-prefixes="Rest"
c:symbol-prefixes="rest">
<enumeration name="MemoryUse" c:type="RestMemoryUse">
<member name="static" value="0" c:identifier="REST_MEMORY_STATIC">
<doc xml:space="preserve">the memory block can be assumed to always exist for the
lifetime of the parameter, #RestParam will use it directly.</doc>
</member>
<member name="take" value="1" c:identifier="REST_MEMORY_TAKE">
<doc xml:space="preserve">#RestParam will take ownership of the memory block, and
g_free() it when it isn't used.</doc>
</member>
<member name="copy" value="2" c:identifier="REST_MEMORY_COPY">
<doc xml:space="preserve">#RestParam will make a copy of the memory block.</doc>
</member>
</enumeration>
<class name="OAuth2Proxy"
c:symbol-prefix="oauth2_proxy"
c:type="OAuth2Proxy"
parent="Proxy"
glib:type-name="OAuth2Proxy"
glib:get-type="oauth2_proxy_get_type"
glib:type-struct="OAuth2ProxyClass">
<doc xml:space="preserve">#OAuth2Proxy has no publicly available members.</doc>
<constructor name="new" c:identifier="oauth2_proxy_new">
<doc xml:space="preserve">Create a new #OAuth2Proxy for the specified endpoint @url_format, using the
specified API key and secret.
This proxy won't have the Token set so will be unauthorised. If the token is
unknown then the following steps should be taken to acquire an access token:
- Get the authentication url with oauth2_proxy_build_login_url()
- Display this url in an embedded browser widget
- wait for the browser widget to be redirected to the specified redirect_uri
- extract the token from the fragment of the redirected uri (using
convenience function oauth2_proxy_extract_access_token())
- set the token with oauth2_proxy_set_access_token()
Set @binding_required to %TRUE if the URL contains string formatting
operations (for example "http://foo.com/%<!-- -->s". These must be expanded
using rest_proxy_bind() before invoking the proxy.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">A new #OAuth2Proxy.</doc>
<type name="Proxy" c:type="RestProxy*"/>
</return-value>
<parameters>
<parameter name="client_id" transfer-ownership="none">
<doc xml:space="preserve">the client (application) id</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="auth_endpoint" transfer-ownership="none">
<doc xml:space="preserve">the authentication endpoint URL</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="url_format" transfer-ownership="none">
<doc xml:space="preserve">the endpoint URL</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="binding_required" transfer-ownership="none">
<doc xml:space="preserve">whether the URL needs to be bound before calling</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</constructor>
<constructor name="new_with_token"
c:identifier="oauth2_proxy_new_with_token">
<doc xml:space="preserve">Create a new #OAuth2Proxy for the specified endpoint @url_format, using the
specified client id
@access_token is used for the Access Token, so if they are still valid then
this proxy is authorised.
Set @binding_required to %TRUE if the URL contains string formatting
operations (for example "http://foo.com/%<!-- -->s". These must be expanded
using rest_proxy_bind() before invoking the proxy.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">A new #OAuth2Proxy.</doc>
<type name="Proxy" c:type="RestProxy*"/>
</return-value>
<parameters>
<parameter name="client_id" transfer-ownership="none">
<doc xml:space="preserve">the client (application) id</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="access_token" transfer-ownership="none">
<doc xml:space="preserve">the Access Token</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="auth_endpoint" transfer-ownership="none">
<doc xml:space="preserve">the authentication endpoint URL</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="url_format" transfer-ownership="none">
<doc xml:space="preserve">the endpoint URL</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="binding_required" transfer-ownership="none">
<doc xml:space="preserve">whether the URL needs to be bound before calling</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</constructor>
<function name="extract_access_token"
c:identifier="oauth2_proxy_extract_access_token">
<doc xml:space="preserve">A utility function to extract the access token from the url that results from
the redirection after the user authenticates</doc>
<return-value transfer-ownership="full">
<type name="utf8" c:type="char*"/>
</return-value>
<parameters>
<parameter name="url" transfer-ownership="none">
<doc xml:space="preserve">the url which contains an access token in its fragment</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</function>
<method name="build_login_url"
c:identifier="oauth2_proxy_build_login_url">
<doc xml:space="preserve">Builds a url at which the user can log in to the specified OAuth2-based web
service. See the documentation for oauth2_proxy_build_login_url_full() for
detailed information.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a newly allocated uri string</doc>
<type name="utf8" c:type="char*"/>
</return-value>
<parameters>
<instance-parameter name="proxy" transfer-ownership="none">
<doc xml:space="preserve">an OAuth2Proxy object</doc>
<type name="OAuth2Proxy" c:type="OAuth2Proxy*"/>
</instance-parameter>
<parameter name="redirect_uri" transfer-ownership="none">
<doc xml:space="preserve">the uri to redirect to after the user authenticates</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</method>
<method name="build_login_url_full"
c:identifier="oauth2_proxy_build_login_url_full">
<doc xml:space="preserve">Builds a url at which the user can log in to the specified OAuth2-based web
service. In general, this url should be displayed in an embedded browser
widget, and you should then intercept the browser's redirect to @redirect_uri
and extract the access token from the url fragment. After the access token
has been retrieved, call oauth2_proxy_set_access_token(). This must be done
before making any API calls to the service.
See the oauth2 spec for more details about the "user-agent" authentication
flow.
The @extra_params and @redirect_uri should not be uri-encoded, that will be
done automatically</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a newly allocated uri string</doc>
<type name="utf8" c:type="char*"/>
</return-value>
<parameters>
<instance-parameter name="proxy" transfer-ownership="none">
<doc xml:space="preserve">a OAuth2Proxy object</doc>
<type name="OAuth2Proxy" c:type="OAuth2Proxy*"/>
</instance-parameter>
<parameter name="redirect_uri" transfer-ownership="none">
<doc xml:space="preserve">the uri to redirect to after the user authenticates</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="extra_params" transfer-ownership="none">
<doc xml:space="preserve">any extra parameters to add to the login url (e.g. facebook
uses 'scope=foo,bar' to request extended permissions).</doc>
<type name="GLib.HashTable" c:type="GHashTable*">
<type name="gpointer" c:type="gpointer"/>
<type name="gpointer" c:type="gpointer"/>
</type>
</parameter>
</parameters>
</method>
<method name="get_access_token"
c:identifier="oauth2_proxy_get_access_token">
<doc xml:space="preserve">Get the current request or access token.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the token, or %NULL if there is no token yet. This string is owned
by #OAuth2Proxy and should not be freed.</doc>
<type name="utf8" c:type="const char*"/>
</return-value>
<parameters>
<instance-parameter name="proxy" transfer-ownership="none">
<doc xml:space="preserve">an #OAuth2Proxy</doc>
<type name="OAuth2Proxy" c:type="OAuth2Proxy*"/>
</instance-parameter>
</parameters>
</method>
<method name="set_access_token"
c:identifier="oauth2_proxy_set_access_token">
<doc xml:space="preserve">Set the access token.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="proxy" transfer-ownership="none">
<doc xml:space="preserve">an #OAuth2Proxy</doc>
<type name="OAuth2Proxy" c:type="OAuth2Proxy*"/>
</instance-parameter>
<parameter name="access_token" transfer-ownership="none">
<doc xml:space="preserve">the access token</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</method>
<property name="access-token" writable="1" transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</property>
<property name="auth-endpoint"
writable="1"
construct-only="1"
transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</property>
<property name="client-id"
writable="1"
construct-only="1"
transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</property>
<field name="parent">
<type name="Proxy" c:type="RestProxy"/>
</field>
<field name="priv">
<type name="OAuth2ProxyPrivate" c:type="OAuth2ProxyPrivate*"/>
</field>
</class>
<class name="OAuth2ProxyCall"
c:symbol-prefix="oauth2_proxy_call"
c:type="OAuth2ProxyCall"
parent="ProxyCall"
glib:type-name="OAuth2ProxyCall"
glib:get-type="oauth2_proxy_call_get_type"
glib:type-struct="OAuth2ProxyCallClass">
<doc xml:space="preserve">#OAuth2ProxyCall has no publicly available members.</doc>
<field name="parent">
<type name="ProxyCall" c:type="RestProxyCall"/>
</field>
</class>
<record name="OAuth2ProxyCallClass"
c:type="OAuth2ProxyCallClass"
glib:is-gtype-struct-for="OAuth2ProxyCall">
<field name="parent_class">
<type name="ProxyCallClass" c:type="RestProxyCallClass"/>
</field>
<field name="_padding_dummy" readable="0" private="1">
<array zero-terminated="0" c:type="gpointer" fixed-size="8">
<type name="gpointer" c:type="gpointer"/>
</array>
</field>
</record>
<record name="OAuth2ProxyClass"
c:type="OAuth2ProxyClass"
glib:is-gtype-struct-for="OAuth2Proxy">
<field name="parent_class">
<type name="ProxyClass" c:type="RestProxyClass"/>
</field>
<field name="_padding_dummy" readable="0" private="1">
<array zero-terminated="0" c:type="gpointer" fixed-size="8">
<type name="gpointer" c:type="gpointer"/>
</array>
</field>
</record>
<record name="OAuth2ProxyPrivate"
c:type="OAuth2ProxyPrivate"
disguised="1">
</record>
<class name="OAuthProxy"
c:symbol-prefix="oauth_proxy"
c:type="OAuthProxy"
parent="Proxy"
glib:type-name="OAuthProxy"
glib:get-type="oauth_proxy_get_type"
glib:type-struct="OAuthProxyClass">
<doc xml:space="preserve">#OAuthProxy has no publicly available members.</doc>
<constructor name="new" c:identifier="oauth_proxy_new">
<doc xml:space="preserve">Create a new #OAuthProxy for the specified endpoint @url_format, using the
specified API key and secret.
This proxy won't have the Token or Token Secret set so as such will be
unauthorised. If the tokens are unknown then oauth_proxy_request_token() and
oauth_proxy_access_token() should be called to do the OAuth authorisation, or
the tokens should be set using oauth_proxy_set_token() and
oauth_proxy_set_token_secret().
Set @binding_required to %TRUE if the URL contains string formatting
operations (for example "http://foo.com/%<!-- -->s". These must be expanded
using rest_proxy_bind() before invoking the proxy.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">A new #OAuthProxy.</doc>
<type name="Proxy" c:type="RestProxy*"/>
</return-value>
<parameters>
<parameter name="consumer_key" transfer-ownership="none">
<doc xml:space="preserve">the Consumer Key</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="consumer_secret" transfer-ownership="none">
<doc xml:space="preserve">the Consumer Secret</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="url_format" transfer-ownership="none">
<doc xml:space="preserve">the endpoint URL</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="binding_required" transfer-ownership="none">
<doc xml:space="preserve">whether the URL needs to be bound before calling</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</constructor>
<constructor name="new_with_token"
c:identifier="oauth_proxy_new_with_token">
<doc xml:space="preserve">Create a new #OAuthProxy for the specified endpoint @url_format, using the
specified API key and secret.
@token and @token_secret are used for the Access Token and Token Secret, so
if they are still valid then this proxy is authorised.
Set @binding_required to %TRUE if the URL contains string formatting
operations (for example "http://foo.com/%<!-- -->s". These must be expanded
using rest_proxy_bind() before invoking the proxy.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">A new #OAuthProxy.</doc>
<type name="Proxy" c:type="RestProxy*"/>
</return-value>
<parameters>
<parameter name="consumer_key" transfer-ownership="none">
<doc xml:space="preserve">the Consumer Key</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="consumer_secret" transfer-ownership="none">
<doc xml:space="preserve">the Consumer Secret</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="token" transfer-ownership="none">
<doc xml:space="preserve">the Access Token</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="token_secret" transfer-ownership="none">
<doc xml:space="preserve">the Token Secret</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="url_format" transfer-ownership="none">
<doc xml:space="preserve">the endpoint URL</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="binding_required" transfer-ownership="none">
<doc xml:space="preserve">whether the URL needs to be bound before calling</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</constructor>
<method name="access_token"
c:identifier="oauth_proxy_access_token"
throws="1">
<doc xml:space="preserve">Perform the Access Token phase of OAuth, invoking @function (defaulting to
"access_token" if @function is NULL).
@verifier is only used if you are using OAuth 1.0a. This is either the
"oauth_verifier" parameter that was passed to your callback URI, or a string
that the user enters in some other manner (for example in a popup dialog) if
"oob" was passed to oauth_proxy_request_token(). For OAuth 1.0, pass %NULL.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success, or %FALSE on failure. On failure @error is set.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="proxy" transfer-ownership="none">
<doc xml:space="preserve">an #OAuthProxy</doc>
<type name="OAuthProxy" c:type="OAuthProxy*"/>
</instance-parameter>
<parameter name="function" transfer-ownership="none">
<doc xml:space="preserve">the function name to invoke</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="verifier" transfer-ownership="none">
<doc xml:space="preserve">the verifier</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</method>
<method name="access_token_async"
c:identifier="oauth_proxy_access_token_async"
throws="1">
<doc xml:space="preserve">Perform the Access Token phase of OAuth, invoking @function (defaulting to
"access_token" if @function is NULL).
@verifier is only used if you are using OAuth 1.0a. This is either the
"oauth_verifier" parameter that was passed to your callback URI, or a string
that the user enters in some other manner (for example in a popup dialog) if
"oob" was passed to oauth_proxy_request_token(). For OAuth 1.0, pass %NULL.
This method will return once the method has been queued, @callback will be
invoked when it has completed.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE if the method was successfully queued, or %FALSE on
failure. On failure @error is set.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="proxy" transfer-ownership="none">
<doc xml:space="preserve">an #OAuthProxy</doc>
<type name="OAuthProxy" c:type="OAuthProxy*"/>
</instance-parameter>
<parameter name="function" transfer-ownership="none">
<doc xml:space="preserve">the function name to invoke</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="verifier" transfer-ownership="none">
<doc xml:space="preserve">the verifier</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="callback"
transfer-ownership="none"
scope="async"
closure="4">
<doc xml:space="preserve">a #OAuthProxyAuthCallback to invoke on completion</doc>
<type name="OAuthProxyAuthCallback"
c:type="OAuthProxyAuthCallback"/>
</parameter>
<parameter name="weak_object" transfer-ownership="none">
<doc xml:space="preserve">#GObject to weakly reference and tie the lifecycle of the method call too</doc>
<type name="GObject.Object" c:type="GObject*"/>
</parameter>
<parameter name="user_data"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">user data to pass to @callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</method>
<method name="auth_step" c:identifier="oauth_proxy_auth_step" throws="1">
<doc xml:space="preserve">Perform an OAuth authorisation step. This calls @function and then updates
the token and token secret in the proxy.
@proxy must not require binding, the function will be invoked using
rest_proxy_call_set_function().</doc>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="proxy" transfer-ownership="none">
<doc xml:space="preserve">an #OAuthProxy</doc>
<type name="OAuthProxy" c:type="OAuthProxy*"/>
</instance-parameter>
<parameter name="function" transfer-ownership="none">
<doc xml:space="preserve">the function to invoke on the proxy</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</method>
<method name="auth_step_async"
c:identifier="oauth_proxy_auth_step_async"
throws="1">
<doc xml:space="preserve">Perform an OAuth authorisation step. This calls @function and then updates
the token and token secret in the proxy.
@proxy must not require binding, the function will be invoked using
rest_proxy_call_set_function().</doc>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="proxy" transfer-ownership="none">
<doc xml:space="preserve">an #OAuthProxy</doc>
<type name="OAuthProxy" c:type="OAuthProxy*"/>
</instance-parameter>
<parameter name="function" transfer-ownership="none">
<doc xml:space="preserve">the function to invoke on the proxy</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="callback"
transfer-ownership="none"
scope="async"
closure="3">
<doc xml:space="preserve">the callback to invoke when authorisation is complete</doc>
<type name="OAuthProxyAuthCallback"
c:type="OAuthProxyAuthCallback"/>
</parameter>
<parameter name="weak_object" transfer-ownership="none">
<doc xml:space="preserve">the #GObject to weakly reference and tie the lifecycle too</doc>
<type name="GObject.Object" c:type="GObject*"/>
</parameter>
<parameter name="user_data"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">data to pass to @callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</method>
<method name="get_signature_host"
c:identifier="oauth_proxy_get_signature_host">
<doc xml:space="preserve">Get the signature hostname used when creating a signature base string.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the signature hostname, or %NULL if there is none set.
This string is owned by #OAuthProxy and should not be freed.</doc>
<type name="utf8" c:type="const char*"/>
</return-value>
<parameters>
<instance-parameter name="proxy" transfer-ownership="none">
<doc xml:space="preserve">an #OAuthProxy</doc>
<type name="OAuthProxy" c:type="OAuthProxy*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_token" c:identifier="oauth_proxy_get_token">
<doc xml:space="preserve">Get the current request or access token.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the token, or %NULL if there is no token yet. This string is owned
by #OAuthProxy and should not be freed.</doc>
<type name="utf8" c:type="const char*"/>
</return-value>
<parameters>
<instance-parameter name="proxy" transfer-ownership="none">
<doc xml:space="preserve">an #OAuthProxy</doc>
<type name="OAuthProxy" c:type="OAuthProxy*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_token_secret"
c:identifier="oauth_proxy_get_token_secret">
<doc xml:space="preserve">Get the current request or access token secret.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the token secret, or %NULL if there is no token secret yet. This
string is owned by #OAuthProxy and should not be freed.</doc>
<type name="utf8" c:type="const char*"/>
</return-value>
<parameters>
<instance-parameter name="proxy" transfer-ownership="none">
<doc xml:space="preserve">an #OAuthProxy</doc>
<type name="OAuthProxy" c:type="OAuthProxy*"/>
</instance-parameter>
</parameters>
</method>
<method name="is_oauth10a" c:identifier="oauth_proxy_is_oauth10a">
<doc xml:space="preserve">Determines if the server supports OAuth 1.0a with this proxy. This is only
valid after oauth_proxy_request_token() or oauth_proxy_request_token_async()
has been called.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE if the server supports OAuth 1.0a, %FALSE otherwise.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="proxy" transfer-ownership="none">
<doc xml:space="preserve">a valid #OAuthProxy</doc>
<type name="OAuthProxy" c:type="OAuthProxy*"/>
</instance-parameter>
</parameters>
</method>
<method name="new_echo_proxy" c:identifier="oauth_proxy_new_echo_proxy">
<doc xml:space="preserve">Create a new <ulink
url="http://www.scribd.com/doc/26707268/OAuth-Echo-Identity-Veri%EF%AC%81cation-Delegation-Draft">OAuth
Echo</ulink> proxy.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new OAuth Echo proxy</doc>
<type name="Proxy" c:type="RestProxy*"/>
</return-value>
<parameters>
<instance-parameter name="proxy" transfer-ownership="none">
<doc xml:space="preserve">an #OAuthProxy</doc>
<type name="OAuthProxy" c:type="OAuthProxy*"/>
</instance-parameter>
<parameter name="service_url" transfer-ownership="none">
<doc xml:space="preserve">the service URL</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="url_format" transfer-ownership="none">
<doc xml:space="preserve">the URL format</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="binding_required" transfer-ownership="none">
<doc xml:space="preserve">whether a binding is required</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</method>
<method name="request_token"
c:identifier="oauth_proxy_request_token"
throws="1">
<doc xml:space="preserve">Perform the Request Token phase of OAuth, invoking @function (defaulting to
"request_token" if @function is NULL).
The value of @callback depends on whether you wish to use OAuth 1.0 or 1.0a.
If you wish to use 1.0 then callback must be NULL. To use 1.0a then
@callback should either be your callback URI, or "oob" (out-of-band).</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success, or %FALSE on failure. On failure @error is set.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="proxy" transfer-ownership="none">
<doc xml:space="preserve">an #OAuthProxy</doc>
<type name="OAuthProxy" c:type="OAuthProxy*"/>
</instance-parameter>
<parameter name="function" transfer-ownership="none">
<doc xml:space="preserve">the function name to invoke</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="callback_uri" transfer-ownership="none">
<doc xml:space="preserve">the callback URI</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</method>
<method name="request_token_async"
c:identifier="oauth_proxy_request_token_async"
throws="1">
<doc xml:space="preserve">Perform the Request Token phase of OAuth, invoking @function (defaulting to
"request_token" if @function is NULL).
The value of @callback depends on whether you wish to use OAuth 1.0 or 1.0a.
If you wish to use 1.0 then callback must be NULL. To use 1.0a then
@callback should either be your callback URI, or "oob" (out-of-band).
This method will return once the method has been queued, @callback will be
invoked when it has completed.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE if the method was successfully queued, or %FALSE on
failure. On failure @error is set.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="proxy" transfer-ownership="none">
<doc xml:space="preserve">an #OAuthProxy</doc>
<type name="OAuthProxy" c:type="OAuthProxy*"/>
</instance-parameter>
<parameter name="function" transfer-ownership="none">
<doc xml:space="preserve">the function name to invoke</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="callback_uri" transfer-ownership="none">
<doc xml:space="preserve">the callback URI</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="callback"
transfer-ownership="none"
scope="async"
closure="4">
<doc xml:space="preserve">a #OAuthProxyAuthCallback to invoke on completion</doc>
<type name="OAuthProxyAuthCallback"
c:type="OAuthProxyAuthCallback"/>
</parameter>
<parameter name="weak_object" transfer-ownership="none">
<doc xml:space="preserve">#GObject to weakly reference and tie the lifecycle of the method call too</doc>
<type name="GObject.Object" c:type="GObject*"/>
</parameter>
<parameter name="user_data"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">user data to pass to @callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</method>
<method name="set_signature_host"
c:identifier="oauth_proxy_set_signature_host">
<doc xml:space="preserve">Set the signature hostname used when creating a signature base string.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="proxy" transfer-ownership="none">
<doc xml:space="preserve">an #OAuthProxy</doc>
<type name="OAuthProxy" c:type="OAuthProxy*"/>
</instance-parameter>
<parameter name="signature_host" transfer-ownership="none">
<doc xml:space="preserve">the signature host</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</method>
<method name="set_token" c:identifier="oauth_proxy_set_token">
<doc xml:space="preserve">Set the access token.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="proxy" transfer-ownership="none">
<doc xml:space="preserve">an #OAuthProxy</doc>
<type name="OAuthProxy" c:type="OAuthProxy*"/>
</instance-parameter>
<parameter name="token" transfer-ownership="none">
<doc xml:space="preserve">the access token</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</method>
<method name="set_token_secret"
c:identifier="oauth_proxy_set_token_secret">
<doc xml:space="preserve">Set the access token secret.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="proxy" transfer-ownership="none">
<doc xml:space="preserve">an #OAuthProxy</doc>
<type name="OAuthProxy" c:type="OAuthProxy*"/>
</instance-parameter>
<parameter name="token_secret" transfer-ownership="none">
<doc xml:space="preserve">the access token secret</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</method>
<property name="consumer-key"
writable="1"
construct-only="1"
transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</property>
<property name="consumer-secret"
writable="1"
construct-only="1"
transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</property>
<property name="signature-host" writable="1" transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</property>
<property name="signature-method" writable="1" transfer-ownership="none">
<type name="OAuthSignatureMethod"/>
</property>
<property name="token" writable="1" transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</property>
<property name="token-secret" writable="1" transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</property>
<field name="parent">
<type name="Proxy" c:type="RestProxy"/>
</field>
</class>
<callback name="OAuthProxyAuthCallback">
<doc xml:space="preserve">Callback from oauth_proxy_request_token_async() and
oauth_proxy_access_token_async().</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="proxy" transfer-ownership="none">
<doc xml:space="preserve">the #OAuthProxy</doc>
<type name="OAuthProxy" c:type="OAuthProxy*"/>
</parameter>
<parameter name="error" transfer-ownership="none">
<doc xml:space="preserve">a #GError if the authentication failed, otherwise %NULL</doc>
<type name="GLib.Error" c:type="const GError*"/>
</parameter>
<parameter name="weak_object" transfer-ownership="none">
<doc xml:space="preserve">the weak object passed to the caller</doc>
<type name="GObject.Object" c:type="GObject*"/>
</parameter>
<parameter name="userdata"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">the user data passed to the caller</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</callback>
<class name="OAuthProxyCall"
c:symbol-prefix="oauth_proxy_call"
c:type="OAuthProxyCall"
parent="ProxyCall"
glib:type-name="OAuthProxyCall"
glib:get-type="oauth_proxy_call_get_type"
glib:type-struct="OAuthProxyCallClass">
<doc xml:space="preserve">#OAuthProxyCall has no publicly available members.</doc>
<method name="parse_token_reponse"
c:identifier="oauth_proxy_call_parse_token_reponse">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<type name="OAuthProxyCall" c:type="OAuthProxyCall*"/>
</instance-parameter>
</parameters>
</method>
<method name="parse_token_response"
c:identifier="oauth_proxy_call_parse_token_response">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<type name="OAuthProxyCall" c:type="OAuthProxyCall*"/>
</instance-parameter>
</parameters>
</method>
<field name="parent">
<type name="ProxyCall" c:type="RestProxyCall"/>
</field>
</class>
<record name="OAuthProxyCallClass"
c:type="OAuthProxyCallClass"
glib:is-gtype-struct-for="OAuthProxyCall">
<field name="parent_class">
<type name="ProxyCallClass" c:type="RestProxyCallClass"/>
</field>
<field name="_padding_dummy" readable="0" private="1">
<array zero-terminated="0" c:type="gpointer" fixed-size="8">
<type name="gpointer" c:type="gpointer"/>
</array>
</field>
</record>
<record name="OAuthProxyClass"
c:type="OAuthProxyClass"
glib:is-gtype-struct-for="OAuthProxy">
<field name="parent_class">
<type name="ProxyClass" c:type="RestProxyClass"/>
</field>
<field name="_padding_dummy" readable="0" private="1">
<array zero-terminated="0" c:type="gpointer" fixed-size="8">
<type name="gpointer" c:type="gpointer"/>
</array>
</field>
</record>
<enumeration name="OAuthSignatureMethod"
glib:type-name="OAuthSignatureMethod"
glib:get-type="oauth_signature_method_get_type"
c:type="OAuthSignatureMethod">
<doc xml:space="preserve">The signature method to use when signing method calls. @PLAINTEXT is only
recommended for testing, in general @HMAC_SHA1 is well supported and more
secure.</doc>
<member name="plaintext"
value="0"
c:identifier="PLAINTEXT"
glib:nick="plaintext">
<doc xml:space="preserve">plain text signatures (not recommended)</doc>
</member>
<member name="hmac_sha1"
value="1"
c:identifier="HMAC_SHA1"
glib:nick="hmac-sha1">
<doc xml:space="preserve">HMAC-SHA1 signatures (recommended)</doc>
</member>
</enumeration>
<record name="Param"
c:type="RestParam"
glib:type-name="RestParam"
glib:get-type="rest_param_get_type"
c:symbol-prefix="param">
<constructor name="new_full" c:identifier="rest_param_new_full">
<doc xml:space="preserve">Create a new #RestParam called @name with @length bytes of @data as the
value. @content_type is the type of the data as a MIME type, for example
"text/plain" for simple string parameters.
If the parameter is a file upload it can be passed as @filename.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new #RestParam.</doc>
<type name="Param" c:type="RestParam*"/>
</return-value>
<parameters>
<parameter name="name" transfer-ownership="none">
<doc xml:space="preserve">the parameter name</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="use" transfer-ownership="none">
<doc xml:space="preserve">the #RestMemoryUse describing how the memory can be used</doc>
<type name="MemoryUse" c:type="RestMemoryUse"/>
</parameter>
<parameter name="data" transfer-ownership="none">
<doc xml:space="preserve">a pointer to
the start of the data</doc>
<array length="3" zero-terminated="0" c:type="gconstpointer">
<type name="guint8"/>
</array>
</parameter>
<parameter name="length" transfer-ownership="none">
<doc xml:space="preserve">the length of the data</doc>
<type name="gsize" c:type="gsize"/>
</parameter>
<parameter name="content_type" transfer-ownership="none">
<doc xml:space="preserve">the content type of the data</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="filename" transfer-ownership="none">
<doc xml:space="preserve">the original filename, or %NULL</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</constructor>
<constructor name="new_string" c:identifier="rest_param_new_string">
<doc xml:space="preserve">A convience constructor to create a #RestParam from a given UTF-8 string.
The resulting #RestParam will have a content type of "text/plain".</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new #RestParam.</doc>
<type name="Param" c:type="RestParam*"/>
</return-value>
<parameters>
<parameter name="name" transfer-ownership="none">
<doc xml:space="preserve">the parameter name</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="use" transfer-ownership="none">
<doc xml:space="preserve">the #RestMemoryUse describing how the memory can be used</doc>
<type name="MemoryUse" c:type="RestMemoryUse"/>
</parameter>
<parameter name="string" transfer-ownership="none">
<doc xml:space="preserve">the parameter value</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</constructor>
<constructor name="new_with_owner"
c:identifier="rest_param_new_with_owner">
<doc xml:space="preserve">Create a new #RestParam called @name with @length bytes of @data as the
value. @content_type is the type of the data as a MIME type, for example
"text/plain" for simple string parameters.
If the parameter is a file upload it can be passed as @filename.
When the #RestParam is freed, it will call @owner_dnotify, passing @owner to
it. This allows you to do something like this:
|[
GMappedFile *map = g_mapped_file_new (filename, FALSE, &error);
RestParam *param = rest_param_new_with_owner ("media",
g_mapped_file_get_contents (map),
g_mapped_file_get_length (map),
"image/jpeg",
filename,
map,
(GDestroyNotify)g_mapped_file_unref);
]|</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new #RestParam.</doc>
<type name="Param" c:type="RestParam*"/>
</return-value>
<parameters>
<parameter name="name" transfer-ownership="none">
<doc xml:space="preserve">the parameter name</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="data" transfer-ownership="none">
<doc xml:space="preserve">a pointer to
the start of the data</doc>
<array length="2" zero-terminated="0" c:type="gconstpointer">
<type name="guint8"/>
</array>
</parameter>
<parameter name="length" transfer-ownership="none">
<doc xml:space="preserve">the length of the data</doc>
<type name="gsize" c:type="gsize"/>
</parameter>
<parameter name="content_type" transfer-ownership="none">
<doc xml:space="preserve">the content type of the data</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="filename"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">the original filename, or %NULL</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="owner"
transfer-ownership="full"
nullable="1"
allow-none="1">
<doc xml:space="preserve">pointer to an object that owns @data</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
<parameter name="owner_dnotify"
transfer-ownership="none"
nullable="1"
allow-none="1"
scope="async">
<doc xml:space="preserve">a function to free/unref @owner when
the buffer is freed</doc>
<type name="GLib.DestroyNotify" c:type="GDestroyNotify"/>
</parameter>
</parameters>
</constructor>
<method name="get_content" c:identifier="rest_param_get_content">
<doc xml:space="preserve">Get the content of @param. The content should be treated as read-only and
not modified in any way.</doc>
<return-value transfer-ownership="none" nullable="1">
<doc xml:space="preserve">the content.</doc>
<type name="gpointer" c:type="gconstpointer"/>
</return-value>
<parameters>
<instance-parameter name="param" transfer-ownership="none">
<doc xml:space="preserve">a valid #RestParam</doc>
<type name="Param" c:type="RestParam*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_content_length"
c:identifier="rest_param_get_content_length">
<doc xml:space="preserve">Get the length of the content of @param.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the length of the content</doc>
<type name="gsize" c:type="gsize"/>
</return-value>
<parameters>
<instance-parameter name="param" transfer-ownership="none">
<doc xml:space="preserve">a valid #RestParam</doc>
<type name="Param" c:type="RestParam*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_content_type"
c:identifier="rest_param_get_content_type">
<doc xml:space="preserve">Get the MIME type of the parameter. For example, basic strings have the MIME
type "text/plain".</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the MIME type</doc>
<type name="utf8" c:type="const char*"/>
</return-value>
<parameters>
<instance-parameter name="param" transfer-ownership="none">
<doc xml:space="preserve">a valid #RestParam</doc>
<type name="Param" c:type="RestParam*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_file_name" c:identifier="rest_param_get_file_name">
<doc xml:space="preserve">Get the original file name of the parameter, if one is available.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the filename if set, or %NULL.</doc>
<type name="utf8" c:type="const char*"/>
</return-value>
<parameters>
<instance-parameter name="param" transfer-ownership="none">
<doc xml:space="preserve">a valid #RestParam</doc>
<type name="Param" c:type="RestParam*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_name" c:identifier="rest_param_get_name">
<doc xml:space="preserve">Get the name of the parameter.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the parameter name.</doc>
<type name="utf8" c:type="const char*"/>
</return-value>
<parameters>
<instance-parameter name="param" transfer-ownership="none">
<doc xml:space="preserve">a valid #RestParam</doc>
<type name="Param" c:type="RestParam*"/>
</instance-parameter>
</parameters>
</method>
<method name="is_string" c:identifier="rest_param_is_string">
<doc xml:space="preserve">Determine if the parameter is a string value, i.e. the content type is "text/plain".</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE if the parameter is a string, %FALSE otherwise.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="param" transfer-ownership="none">
<doc xml:space="preserve">a valid #RestParam</doc>
<type name="Param" c:type="RestParam*"/>
</instance-parameter>
</parameters>
</method>
<method name="ref" c:identifier="rest_param_ref">
<doc xml:space="preserve">Increase the reference count on @param.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">the #RestParam</doc>
<type name="Param" c:type="RestParam*"/>
</return-value>
<parameters>
<instance-parameter name="param" transfer-ownership="none">
<doc xml:space="preserve">a valid #RestParam</doc>
<type name="Param" c:type="RestParam*"/>
</instance-parameter>
</parameters>
</method>
<method name="unref" c:identifier="rest_param_unref">
<doc xml:space="preserve">Decrease the reference count on @param, destroying it if the reference count
reaches 0.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="param" transfer-ownership="none">
<doc xml:space="preserve">a valid #RestParam</doc>
<type name="Param" c:type="RestParam*"/>
</instance-parameter>
</parameters>
</method>
</record>
<record name="Params" c:type="RestParams" disguised="1">
<method name="add" c:identifier="rest_params_add">
<doc xml:space="preserve">Add @param to @params.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="params" transfer-ownership="none">
<doc xml:space="preserve">a valid #RestParams</doc>
<type name="Params" c:type="RestParams*"/>
</instance-parameter>
<parameter name="param" transfer-ownership="none">
<doc xml:space="preserve">a valid #RestParam</doc>
<type name="Param" c:type="RestParam*"/>
</parameter>
</parameters>
</method>
<method name="are_strings" c:identifier="rest_params_are_strings">
<doc xml:space="preserve">Checks if the parameters are all simple strings (have a content type of
"text/plain").</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE if all of the parameters are simple strings, %FALSE otherwise.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="params" transfer-ownership="none">
<doc xml:space="preserve">a valid #RestParams</doc>
<type name="Params" c:type="RestParams*"/>
</instance-parameter>
</parameters>
</method>
<method name="as_string_hash_table"
c:identifier="rest_params_as_string_hash_table">
<doc xml:space="preserve">Create a new #GHashTable which contains the name and value of all string
(content type of text/plain) parameters.
The values are owned by the #RestParams, so don't destroy the #RestParams
before the hash table.</doc>
<return-value transfer-ownership="container">
<doc xml:space="preserve">a new #GHashTable.</doc>
<type name="GLib.HashTable" c:type="GHashTable*">
<type name="utf8"/>
<type name="Param"/>
</type>
</return-value>
<parameters>
<instance-parameter name="params" transfer-ownership="none">
<doc xml:space="preserve">a valid #RestParams</doc>
<type name="Params" c:type="RestParams*"/>
</instance-parameter>
</parameters>
</method>
<method name="free" c:identifier="rest_params_free">
<doc xml:space="preserve">Destroy the #RestParams and the #RestParam objects that it contains.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="params" transfer-ownership="none">
<doc xml:space="preserve">a valid #RestParams</doc>
<type name="Params" c:type="RestParams*"/>
</instance-parameter>
</parameters>
</method>
<method name="get" c:identifier="rest_params_get">
<doc xml:space="preserve">Return the #RestParam called @name, or %NULL if it doesn't exist.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a #RestParam or %NULL if the name doesn't exist</doc>
<type name="Param" c:type="RestParam*"/>
</return-value>
<parameters>
<instance-parameter name="params" transfer-ownership="none">
<doc xml:space="preserve">a valid #RestParams</doc>
<type name="Params" c:type="RestParams*"/>
</instance-parameter>
<parameter name="name" transfer-ownership="none">
<doc xml:space="preserve">a parameter name</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</method>
<method name="remove" c:identifier="rest_params_remove">
<doc xml:space="preserve">Remove the #RestParam called @name.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="params" transfer-ownership="none">
<doc xml:space="preserve">a valid #RestParams</doc>
<type name="Params" c:type="RestParams*"/>
</instance-parameter>
<parameter name="name" transfer-ownership="none">
<doc xml:space="preserve">a parameter name</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</method>
<function name="new" c:identifier="rest_params_new" introspectable="0">
<doc xml:space="preserve">Create a new #RestParams.</doc>
<return-value>
<doc xml:space="preserve">A empty #RestParams.</doc>
<type name="Params" c:type="RestParams*"/>
</return-value>
</function>
</record>
<record name="ParamsIter" c:type="RestParamsIter" disguised="1">
<method name="init" c:identifier="rest_params_iter_init">
<doc xml:space="preserve">Initialize a parameter iterator over @params. Modifying @params after calling
this function invalidates the returned iterator.
|[
RestParamsIter iter;
const char *name;
RestParam *param;
rest_params_iter_init (&iter, params);
while (rest_params_iter_next (&iter, &name, &param)) {
/&ast; do something with name and param &ast;/
}
]|</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="iter" transfer-ownership="none">
<doc xml:space="preserve">an uninitialized #RestParamsIter</doc>
<type name="ParamsIter" c:type="RestParamsIter*"/>
</instance-parameter>
<parameter name="params" transfer-ownership="none">
<doc xml:space="preserve">a valid #RestParams</doc>
<type name="Params" c:type="RestParams*"/>
</parameter>
</parameters>
</method>
<method name="next" c:identifier="rest_params_iter_next">
<doc xml:space="preserve">Advances @iter and retrieves the name and/or parameter that are now pointed
at as a result of this advancement. If FALSE is returned, @name and @param
are not set and the iterator becomes invalid.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%FALSE if the end of the #RestParams has been reached, %TRUE otherwise.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="iter" transfer-ownership="none">
<doc xml:space="preserve">an initialized #RestParamsIter</doc>
<type name="ParamsIter" c:type="RestParamsIter*"/>
</instance-parameter>
<parameter name="name" transfer-ownership="none">
<doc xml:space="preserve">a location to store the name, or %NULL</doc>
<type name="utf8" c:type="const char**"/>
</parameter>
<parameter name="param" transfer-ownership="none">
<doc xml:space="preserve">a location to store the #RestParam, or %NULL</doc>
<type name="Param" c:type="RestParam**"/>
</parameter>
</parameters>
</method>
</record>
<class name="Proxy"
c:symbol-prefix="proxy"
c:type="RestProxy"
parent="GObject.Object"
glib:type-name="RestProxy"
glib:get-type="rest_proxy_get_type"
glib:type-struct="ProxyClass">
<doc xml:space="preserve">#RestProxy has no publicly available members.</doc>
<constructor name="new" c:identifier="rest_proxy_new">
<doc xml:space="preserve">Create a new #RestProxy for the specified endpoint @url_format, using the
"GET" method.
Set @binding_required to %TRUE if the URL contains string formatting
operations (for example "http://foo.com/%<!-- -->s". These must be expanded
using rest_proxy_bind() before invoking the proxy.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">A new #RestProxy.</doc>
<type name="Proxy" c:type="RestProxy*"/>
</return-value>
<parameters>
<parameter name="url_format" transfer-ownership="none">
<doc xml:space="preserve">the endpoint URL</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="binding_required" transfer-ownership="none">
<doc xml:space="preserve">whether the URL needs to be bound before calling</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</constructor>
<constructor name="new_with_authentication"
c:identifier="rest_proxy_new_with_authentication">
<doc xml:space="preserve">Create a new #RestProxy for the specified endpoint @url_format, using the
"GET" method.
Set @binding_required to %TRUE if the URL contains string formatting
operations (for example "http://foo.com/%<!-- -->s". These must be expanded
using rest_proxy_bind() before invoking the proxy.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">A new #RestProxy.</doc>
<type name="Proxy" c:type="RestProxy*"/>
</return-value>
<parameters>
<parameter name="url_format" transfer-ownership="none">
<doc xml:space="preserve">the endpoint URL</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="binding_required" transfer-ownership="none">
<doc xml:space="preserve">whether the URL needs to be bound before calling</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
<parameter name="username" transfer-ownership="none">
<doc xml:space="preserve">the username provided by the user or client</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="password" transfer-ownership="none">
<doc xml:space="preserve">the password provided by the user or client</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</constructor>
<virtual-method name="authenticate">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="proxy" transfer-ownership="none">
<type name="Proxy" c:type="RestProxy*"/>
</instance-parameter>
<parameter name="auth" transfer-ownership="none">
<type name="ProxyAuth" c:type="RestProxyAuth*"/>
</parameter>
<parameter name="retrying" transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="bind_valist"
invoker="bind_valist"
introspectable="0">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="proxy" transfer-ownership="none">
<type name="Proxy" c:type="RestProxy*"/>
</instance-parameter>
<parameter name="params" transfer-ownership="none">
<type name="va_list" c:type="va_list"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="new_call" invoker="new_call">
<doc xml:space="preserve">Create a new #RestProxyCall for making a call to the web service. This call
is one-shot and should not be re-used for making multiple calls.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new #RestProxyCall.</doc>
<type name="ProxyCall" c:type="RestProxyCall*"/>
</return-value>
<parameters>
<instance-parameter name="proxy" transfer-ownership="none">
<doc xml:space="preserve">the #RestProxy</doc>
<type name="Proxy" c:type="RestProxy*"/>
</instance-parameter>
</parameters>
</virtual-method>
<virtual-method name="simple_run_valist"
invoker="simple_run_valist"
introspectable="0">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="proxy" transfer-ownership="none">
<type name="Proxy" c:type="RestProxy*"/>
</instance-parameter>
<parameter name="payload" transfer-ownership="none">
<type name="utf8" c:type="gchar**"/>
</parameter>
<parameter name="len" transfer-ownership="none">
<type name="gint64" c:type="goffset*"/>
</parameter>
<parameter name="error" transfer-ownership="none">
<type name="GLib.Error" c:type="GError**"/>
</parameter>
<parameter name="params" transfer-ownership="none">
<type name="va_list" c:type="va_list"/>
</parameter>
</parameters>
</virtual-method>
<method name="add_soup_feature"
c:identifier="rest_proxy_add_soup_feature"
version="0.7.92">
<doc xml:space="preserve">This method can be used to add specific features to the #SoupSession objects
that are used by librest for its HTTP connections. For example, if one needs
extensive control over the cookies which are used for the REST HTTP
communication, it's possible to get full access to libsoup cookie API by
using
<programlisting>
RestProxy *proxy = g_object_new(REST_TYPE_PROXY,
"url-format", url,
"disable-cookies", TRUE,
NULL);
SoupSessionFeature *cookie_jar = SOUP_SESSION_FEATURE(soup_cookie_jar_new ());
rest_proxy_add_soup_feature(proxy, cookie_jar);
</programlisting></doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="proxy" transfer-ownership="none">
<doc xml:space="preserve">The #RestProxy</doc>
<type name="Proxy" c:type="RestProxy*"/>
</instance-parameter>
<parameter name="feature" transfer-ownership="none">
<doc xml:space="preserve">A #SoupSessionFeature</doc>
<type name="Soup.SessionFeature" c:type="SoupSessionFeature*"/>
</parameter>
</parameters>
</method>
<method name="bind" c:identifier="rest_proxy_bind" introspectable="0">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="proxy" transfer-ownership="none">
<type name="Proxy" c:type="RestProxy*"/>
</instance-parameter>
<parameter name="..." transfer-ownership="none">
<varargs/>
</parameter>
</parameters>
</method>
<method name="bind_valist"
c:identifier="rest_proxy_bind_valist"
introspectable="0">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="proxy" transfer-ownership="none">
<type name="Proxy" c:type="RestProxy*"/>
</instance-parameter>
<parameter name="params" transfer-ownership="none">
<type name="va_list" c:type="va_list"/>
</parameter>
</parameters>
</method>
<method name="get_user_agent" c:identifier="rest_proxy_get_user_agent">
<return-value transfer-ownership="none">
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="proxy" transfer-ownership="none">
<type name="Proxy" c:type="RestProxy*"/>
</instance-parameter>
</parameters>
</method>
<method name="new_call" c:identifier="rest_proxy_new_call">
<doc xml:space="preserve">Create a new #RestProxyCall for making a call to the web service. This call
is one-shot and should not be re-used for making multiple calls.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new #RestProxyCall.</doc>
<type name="ProxyCall" c:type="RestProxyCall*"/>
</return-value>
<parameters>
<instance-parameter name="proxy" transfer-ownership="none">
<doc xml:space="preserve">the #RestProxy</doc>
<type name="Proxy" c:type="RestProxy*"/>
</instance-parameter>
</parameters>
</method>
<method name="set_user_agent" c:identifier="rest_proxy_set_user_agent">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="proxy" transfer-ownership="none">
<type name="Proxy" c:type="RestProxy*"/>
</instance-parameter>
<parameter name="user_agent" transfer-ownership="none">
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</method>
<method name="simple_run"
c:identifier="rest_proxy_simple_run"
introspectable="0">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="proxy" transfer-ownership="none">
<type name="Proxy" c:type="RestProxy*"/>
</instance-parameter>
<parameter name="payload" transfer-ownership="none">
<type name="utf8" c:type="gchar**"/>
</parameter>
<parameter name="len" transfer-ownership="none">
<type name="gint64" c:type="goffset*"/>
</parameter>
<parameter name="error" transfer-ownership="none">
<type name="GLib.Error" c:type="GError**"/>
</parameter>
<parameter name="..." transfer-ownership="none">
<varargs/>
</parameter>
</parameters>
</method>
<method name="simple_run_valist"
c:identifier="rest_proxy_simple_run_valist"
introspectable="0">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="proxy" transfer-ownership="none">
<type name="Proxy" c:type="RestProxy*"/>
</instance-parameter>
<parameter name="payload" transfer-ownership="none">
<type name="utf8" c:type="gchar**"/>
</parameter>
<parameter name="len" transfer-ownership="none">
<type name="gint64" c:type="goffset*"/>
</parameter>
<parameter name="error" transfer-ownership="none">
<type name="GLib.Error" c:type="GError**"/>
</parameter>
<parameter name="params" transfer-ownership="none">
<type name="va_list" c:type="va_list"/>
</parameter>
</parameters>
</method>
<property name="binding-required" writable="1" transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</property>
<property name="disable-cookies"
writable="1"
construct-only="1"
transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</property>
<property name="password" writable="1" transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</property>
<property name="ssl-ca-file" writable="1" transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</property>
<property name="ssl-strict" writable="1" transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</property>
<property name="url-format" writable="1" transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</property>
<property name="user-agent" writable="1" transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</property>
<property name="username" writable="1" transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</property>
<field name="parent">
<type name="GObject.Object" c:type="GObject"/>
</field>
<glib:signal name="authenticate" when="last">
<doc xml:space="preserve">Emitted when the proxy requires authentication. If
credentials are available, set the 'username' and 'password'
properties on @proxy and return %TRUE from the callback.
This will cause the signal emission to stop, and librest will
try to connect with these credentials
If these credentials fail, the signal will be
emitted again, with @retrying set to %TRUE, which will
continue until %FALSE is returned from the callback.
If you call rest_proxy_auth_pause() on @auth before
returning, then you can the authentication credentials on
the #RestProxy object asynchronously. You have to make sure
that @auth does not get destroyed with g_object_ref().
You can then unpause the authentication with
rest_proxy_auth_unpause() when everything is ready for it
to continue.</doc>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="auth" transfer-ownership="none">
<doc xml:space="preserve">authentication state</doc>
<type name="ProxyAuth"/>
</parameter>
<parameter name="retrying" transfer-ownership="none">
<doc xml:space="preserve">%TRUE if this is the second (or later) attempt</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</glib:signal>
</class>
<class name="ProxyAuth"
c:symbol-prefix="proxy_auth"
c:type="RestProxyAuth"
parent="GObject.Object"
glib:type-name="RestProxyAuth"
glib:get-type="rest_proxy_auth_get_type"
glib:type-struct="ProxyAuthClass">
<doc xml:space="preserve">#RestProxyAuth has no publicly available members.</doc>
<method name="cancel" c:identifier="rest_proxy_auth_cancel">
<doc xml:space="preserve">Cancel the authentication process
by cancelling the associated #SoupMessage.
It results in returning #GError REST_PROXY_ERROR_CANCELLED
to the function that requested the authentication.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="auth" transfer-ownership="none">
<doc xml:space="preserve">a #RestProxyAuth</doc>
<type name="ProxyAuth" c:type="RestProxyAuth*"/>
</instance-parameter>
</parameters>
</method>
<method name="pause" c:identifier="rest_proxy_auth_pause">
<doc xml:space="preserve">Pauses @auth.
If @auth is already paused, this function does not
do anything.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="auth" transfer-ownership="none">
<doc xml:space="preserve">a #RestProxyAuth</doc>
<type name="ProxyAuth" c:type="RestProxyAuth*"/>
</instance-parameter>
</parameters>
</method>
<method name="unpause" c:identifier="rest_proxy_auth_unpause">
<doc xml:space="preserve">Unpauses a paused #RestProxyAuth instance.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="auth" transfer-ownership="none">
<doc xml:space="preserve">a paused #RestProxyAuth</doc>
<type name="ProxyAuth" c:type="RestProxyAuth*"/>
</instance-parameter>
</parameters>
</method>
<field name="parent">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="priv">
<type name="ProxyAuthPrivate" c:type="RestProxyAuthPrivate*"/>
</field>
</class>
<record name="ProxyAuthClass"
c:type="RestProxyAuthClass"
glib:is-gtype-struct-for="ProxyAuth">
<field name="parent_class">
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
<field name="_padding_dummy" readable="0" private="1">
<array zero-terminated="0" c:type="gpointer" fixed-size="8">
<type name="gpointer" c:type="gpointer"/>
</array>
</field>
</record>
<record name="ProxyAuthPrivate"
c:type="RestProxyAuthPrivate"
disguised="1">
</record>
<class name="ProxyCall"
c:symbol-prefix="proxy_call"
c:type="RestProxyCall"
parent="GObject.Object"
glib:type-name="RestProxyCall"
glib:get-type="rest_proxy_call_get_type"
glib:type-struct="ProxyCallClass">
<doc xml:space="preserve">#RestProxyCall has no publicly available members.</doc>
<virtual-method name="prepare" throws="1">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<type name="ProxyCall" c:type="RestProxyCall*"/>
</instance-parameter>
</parameters>
</virtual-method>
<virtual-method name="serialize_params"
invoker="serialize_params"
throws="1">
<doc xml:space="preserve">Invoker for a virtual method to serialize the parameters for this
#RestProxyCall.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">TRUE if the serialization was successful, FALSE otherwise.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<doc xml:space="preserve">The #RestProxyCall</doc>
<type name="ProxyCall" c:type="RestProxyCall*"/>
</instance-parameter>
<parameter name="content_type"
direction="out"
caller-allocates="0"
transfer-ownership="full">
<doc xml:space="preserve">Content type of the payload</doc>
<type name="utf8" c:type="gchar**"/>
</parameter>
<parameter name="content"
direction="out"
caller-allocates="0"
transfer-ownership="full">
<doc xml:space="preserve">The payload</doc>
<type name="utf8" c:type="gchar**"/>
</parameter>
<parameter name="content_len"
direction="out"
caller-allocates="0"
transfer-ownership="full">
<doc xml:space="preserve">Length of the payload data</doc>
<type name="gsize" c:type="gsize*"/>
</parameter>
</parameters>
</virtual-method>
<method name="add_header" c:identifier="rest_proxy_call_add_header">
<doc xml:space="preserve">Add a header called @header with the value @value to the call. If a
header with this name already exists, the new value will replace the old.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<doc xml:space="preserve">The #RestProxyCall</doc>
<type name="ProxyCall" c:type="RestProxyCall*"/>
</instance-parameter>
<parameter name="header" transfer-ownership="none">
<doc xml:space="preserve">The name of the header to set</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<doc xml:space="preserve">The value of the header</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="add_headers"
c:identifier="rest_proxy_call_add_headers"
introspectable="0">
<doc xml:space="preserve">Add the specified header name and value pairs to the call. If a header
already exists, the new value will replace the old.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<doc xml:space="preserve">The #RestProxyCall</doc>
<type name="ProxyCall" c:type="RestProxyCall*"/>
</instance-parameter>
<parameter name="..." transfer-ownership="none">
<doc xml:space="preserve">Header name and value pairs, followed by %NULL.</doc>
<varargs/>
</parameter>
</parameters>
</method>
<method name="add_headers_from_valist"
c:identifier="rest_proxy_call_add_headers_from_valist"
introspectable="0">
<doc xml:space="preserve">Add the specified header name and value pairs to the call. If a header
already exists, the new value will replace the old.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<doc xml:space="preserve">The #RestProxyCall</doc>
<type name="ProxyCall" c:type="RestProxyCall*"/>
</instance-parameter>
<parameter name="headers" transfer-ownership="none">
<doc xml:space="preserve">Header name and value pairs, followed by %NULL.</doc>
<type name="va_list" c:type="va_list"/>
</parameter>
</parameters>
</method>
<method name="add_param" c:identifier="rest_proxy_call_add_param">
<doc xml:space="preserve">Add a query parameter called @param with the string value @value to the call.
If a parameter with this name already exists, the new value will replace the
old.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<doc xml:space="preserve">The #RestProxyCall</doc>
<type name="ProxyCall" c:type="RestProxyCall*"/>
</instance-parameter>
<parameter name="name" transfer-ownership="none">
<doc xml:space="preserve">The name of the parameter to set</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<doc xml:space="preserve">The value of the parameter</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="add_param_full"
c:identifier="rest_proxy_call_add_param_full">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<type name="ProxyCall" c:type="RestProxyCall*"/>
</instance-parameter>
<parameter name="param" transfer-ownership="none">
<type name="Param" c:type="RestParam*"/>
</parameter>
</parameters>
</method>
<method name="add_params"
c:identifier="rest_proxy_call_add_params"
introspectable="0">
<doc xml:space="preserve">Add the specified parameter name and value pairs to the call. If a parameter
already exists, the new value will replace the old.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<doc xml:space="preserve">The #RestProxyCall</doc>
<type name="ProxyCall" c:type="RestProxyCall*"/>
</instance-parameter>
<parameter name="..." transfer-ownership="none">
<doc xml:space="preserve">Parameter name and value pairs, followed by %NULL.</doc>
<varargs/>
</parameter>
</parameters>
</method>
<method name="add_params_from_valist"
c:identifier="rest_proxy_call_add_params_from_valist"
introspectable="0">
<doc xml:space="preserve">Add the specified parameter name and value pairs to the call. If a parameter
already exists, the new value will replace the old.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<doc xml:space="preserve">The #RestProxyCall</doc>
<type name="ProxyCall" c:type="RestProxyCall*"/>
</instance-parameter>
<parameter name="params" transfer-ownership="none">
<doc xml:space="preserve">Parameter name and value pairs, followed by %NULL.</doc>
<type name="va_list" c:type="va_list"/>
</parameter>
</parameters>
</method>
<method name="async"
c:identifier="rest_proxy_call_async"
introspectable="0"
throws="1">
<doc xml:space="preserve">Asynchronously invoke @call.
When the call has finished, @callback will be called. If @weak_object is
disposed during the call then this call will be cancelled. If the call is
cancelled then the callback will be invoked with an error state.
You may unref the call after calling this function since there is an
internal reference, or you may unref in the callback.</doc>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<doc xml:space="preserve">The #RestProxyCall</doc>
<type name="ProxyCall" c:type="RestProxyCall*"/>
</instance-parameter>
<parameter name="callback" transfer-ownership="none" closure="2">
<doc xml:space="preserve">a #RestProxyCallAsyncCallback to invoke on completion of the call</doc>
<type name="ProxyCallAsyncCallback"
c:type="RestProxyCallAsyncCallback"/>
</parameter>
<parameter name="weak_object" transfer-ownership="none">
<doc xml:space="preserve">The #GObject to weakly reference and tie the lifecycle too</doc>
<type name="GObject.Object" c:type="GObject*"/>
</parameter>
<parameter name="userdata"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">data to pass to @callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</method>
<method name="cancel"
c:identifier="rest_proxy_call_cancel"
introspectable="0">
<doc xml:space="preserve">Cancel this call. It may be too late to not actually send the message, but
the callback will not be invoked.
N.B. this method should only be used with rest_proxy_call_async() and NOT
rest_proxy_call_invoke_async().</doc>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<doc xml:space="preserve">The #RestProxyCall</doc>
<type name="ProxyCall" c:type="RestProxyCall*"/>
</instance-parameter>
</parameters>
</method>
<method name="continuous"
c:identifier="rest_proxy_call_continuous"
introspectable="0"
throws="1">
<doc xml:space="preserve">Asynchronously invoke @call but expect a continuous stream of content. This
means that the body data will not be accumulated and thus you cannot use
rest_proxy_call_get_payload()
When there is data @callback will be called and when the connection is
closed or the stream ends @callback will also be called.
If @weak_object is disposed during the call then this call will be
cancelled. If the call is cancelled then the callback will be invoked with
an error state.
You may unref the call after calling this function since there is an
internal reference, or you may unref in the callback.</doc>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<doc xml:space="preserve">The #RestProxyCall</doc>
<type name="ProxyCall" c:type="RestProxyCall*"/>
</instance-parameter>
<parameter name="callback" transfer-ownership="none" closure="2">
<doc xml:space="preserve">a #RestProxyCallContinuousCallback to invoke when data is available</doc>
<type name="ProxyCallContinuousCallback"
c:type="RestProxyCallContinuousCallback"/>
</parameter>
<parameter name="weak_object" transfer-ownership="none">
<doc xml:space="preserve">The #GObject to weakly reference and tie the lifecycle to</doc>
<type name="GObject.Object" c:type="GObject*"/>
</parameter>
<parameter name="userdata"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">data to pass to @callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</method>
<method name="get_function"
c:identifier="rest_proxy_call_get_function"
version="0.7.92">
<doc xml:space="preserve">Get the REST function that is going to be called on the proxy.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">The REST "function" for the current call, see also
rest_proxy_call_set_function(). This string is owned by the #RestProxyCall
and should not be freed.</doc>
<type name="utf8" c:type="const char*"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<doc xml:space="preserve">The #RestProxyCall</doc>
<type name="ProxyCall" c:type="RestProxyCall*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_method" c:identifier="rest_proxy_call_get_method">
<doc xml:space="preserve">Get the HTTP method to use when making the call, for example GET or POST.</doc>
<return-value transfer-ownership="none">
<type name="utf8" c:type="const char*"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<doc xml:space="preserve">The #RestProxyCall</doc>
<type name="ProxyCall" c:type="RestProxyCall*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_params" c:identifier="rest_proxy_call_get_params">
<doc xml:space="preserve">Get the parameters as a #RestParams of parameter names to values. The
returned value is owned by the RestProxyCall instance and should not
be freed by the caller.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">A #RestParams.</doc>
<type name="Params" c:type="RestParams*"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<doc xml:space="preserve">The #RestProxyCall</doc>
<type name="ProxyCall" c:type="RestProxyCall*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_payload" c:identifier="rest_proxy_call_get_payload">
<doc xml:space="preserve">Get the return payload.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">A pointer to the payload. This is owned by #RestProxyCall and should
not be freed.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<doc xml:space="preserve">The #RestProxyCall</doc>
<type name="ProxyCall" c:type="RestProxyCall*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_payload_length"
c:identifier="rest_proxy_call_get_payload_length">
<doc xml:space="preserve">Get the length of the return payload.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the length of the payload in bytes.</doc>
<type name="gint64" c:type="goffset"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<doc xml:space="preserve">The #RestProxyCall</doc>
<type name="ProxyCall" c:type="RestProxyCall*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_response_headers"
c:identifier="rest_proxy_call_get_response_headers">
<return-value transfer-ownership="container">
<doc xml:space="preserve">pointer to a hash table of
headers. This hash table must not be changed. You should call
g_hash_table_unref() when you have finished with it.</doc>
<type name="GLib.HashTable" c:type="GHashTable*">
<type name="gpointer" c:type="gpointer"/>
<type name="gpointer" c:type="gpointer"/>
</type>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<doc xml:space="preserve">The #RestProxyCall</doc>
<type name="ProxyCall" c:type="RestProxyCall*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_status_code"
c:identifier="rest_proxy_call_get_status_code">
<doc xml:space="preserve">Get the HTTP status code for the call.</doc>
<return-value transfer-ownership="none">
<type name="guint" c:type="guint"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<doc xml:space="preserve">The #RestProxyCall</doc>
<type name="ProxyCall" c:type="RestProxyCall*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_status_message"
c:identifier="rest_proxy_call_get_status_message">
<doc xml:space="preserve">Get the human-readable HTTP status message for the call.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">The status message. This string is owned by #RestProxyCall and
should not be freed.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<doc xml:space="preserve">The #RestProxyCall</doc>
<type name="ProxyCall" c:type="RestProxyCall*"/>
</instance-parameter>
</parameters>
</method>
<method name="invoke_async" c:identifier="rest_proxy_call_invoke_async">
<doc xml:space="preserve">A GIO-style version of rest_proxy_call_async().</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<doc xml:space="preserve">a #RestProxyCall</doc>
<type name="ProxyCall" c:type="RestProxyCall*"/>
</instance-parameter>
<parameter name="cancellable"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">an optional #GCancellable that can be used to
cancel the call, or %NULL</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback"
transfer-ownership="none"
nullable="1"
allow-none="1"
scope="async"
closure="2">
<doc xml:space="preserve">callback to call when the async call is finished</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">user data for the callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</method>
<method name="invoke_finish"
c:identifier="rest_proxy_call_invoke_finish"
throws="1">
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<doc xml:space="preserve">a #RestProxyCall</doc>
<type name="ProxyCall" c:type="RestProxyCall*"/>
</instance-parameter>
<parameter name="result" transfer-ownership="none">
<doc xml:space="preserve">the result from the #GAsyncReadyCallback</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
</method>
<method name="lookup_header"
c:identifier="rest_proxy_call_lookup_header">
<doc xml:space="preserve">Get the value of the header called @header.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">The header value, or %NULL if it does not exist. This string is
owned by the #RestProxyCall and should not be freed.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<doc xml:space="preserve">The #RestProxyCall</doc>
<type name="ProxyCall" c:type="RestProxyCall*"/>
</instance-parameter>
<parameter name="header" transfer-ownership="none">
<doc xml:space="preserve">The header name</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="lookup_param" c:identifier="rest_proxy_call_lookup_param">
<doc xml:space="preserve">Get the value of the parameter called @name.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">The parameter value, or %NULL if it does not exist. This string is
owned by the #RestProxyCall and should not be freed.</doc>
<type name="Param" c:type="RestParam*"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<doc xml:space="preserve">The #RestProxyCall</doc>
<type name="ProxyCall" c:type="RestProxyCall*"/>
</instance-parameter>
<parameter name="name" transfer-ownership="none">
<doc xml:space="preserve">The paramter name</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="lookup_response_header"
c:identifier="rest_proxy_call_lookup_response_header">
<doc xml:space="preserve">Get the string value of the header @header or %NULL if that header is not
present or there are no headers.</doc>
<return-value transfer-ownership="none">
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<doc xml:space="preserve">The #RestProxyCall</doc>
<type name="ProxyCall" c:type="RestProxyCall*"/>
</instance-parameter>
<parameter name="header" transfer-ownership="none">
<doc xml:space="preserve">The name of the header to lookup.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="remove_header"
c:identifier="rest_proxy_call_remove_header">
<doc xml:space="preserve">Remove the header named @header from the call.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<doc xml:space="preserve">The #RestProxyCall</doc>
<type name="ProxyCall" c:type="RestProxyCall*"/>
</instance-parameter>
<parameter name="header" transfer-ownership="none">
<doc xml:space="preserve">The header name</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="remove_param" c:identifier="rest_proxy_call_remove_param">
<doc xml:space="preserve">Remove the parameter named @name from the call.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<doc xml:space="preserve">The #RestProxyCall</doc>
<type name="ProxyCall" c:type="RestProxyCall*"/>
</instance-parameter>
<parameter name="name" transfer-ownership="none">
<doc xml:space="preserve">The paramter name</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="run" c:identifier="rest_proxy_call_run" throws="1">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<type name="ProxyCall" c:type="RestProxyCall*"/>
</instance-parameter>
<parameter name="loop" transfer-ownership="none">
<type name="GLib.MainLoop" c:type="GMainLoop**"/>
</parameter>
</parameters>
</method>
<method name="serialize_params"
c:identifier="rest_proxy_call_serialize_params"
throws="1">
<doc xml:space="preserve">Invoker for a virtual method to serialize the parameters for this
#RestProxyCall.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">TRUE if the serialization was successful, FALSE otherwise.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<doc xml:space="preserve">The #RestProxyCall</doc>
<type name="ProxyCall" c:type="RestProxyCall*"/>
</instance-parameter>
<parameter name="content_type"
direction="out"
caller-allocates="0"
transfer-ownership="full">
<doc xml:space="preserve">Content type of the payload</doc>
<type name="utf8" c:type="gchar**"/>
</parameter>
<parameter name="content"
direction="out"
caller-allocates="0"
transfer-ownership="full">
<doc xml:space="preserve">The payload</doc>
<type name="utf8" c:type="gchar**"/>
</parameter>
<parameter name="content_len"
direction="out"
caller-allocates="0"
transfer-ownership="full">
<doc xml:space="preserve">Length of the payload data</doc>
<type name="gsize" c:type="gsize*"/>
</parameter>
</parameters>
</method>
<method name="set_function" c:identifier="rest_proxy_call_set_function">
<doc xml:space="preserve">Set the REST "function" to call on the proxy. This is appended to the URL,
so that for example a proxy with the URL
<literal>http://www.example.com/</literal> and the function
<literal>test</literal> would actually access the URL
<literal>http://www.example.com/test</literal></doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<doc xml:space="preserve">The #RestProxyCall</doc>
<type name="ProxyCall" c:type="RestProxyCall*"/>
</instance-parameter>
<parameter name="function" transfer-ownership="none">
<doc xml:space="preserve">The function to call</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="set_method" c:identifier="rest_proxy_call_set_method">
<doc xml:space="preserve">Set the HTTP method to use when making the call, for example GET or POST.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<doc xml:space="preserve">The #RestProxyCall</doc>
<type name="ProxyCall" c:type="RestProxyCall*"/>
</instance-parameter>
<parameter name="method" transfer-ownership="none">
<doc xml:space="preserve">The HTTP method to use</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="sync" c:identifier="rest_proxy_call_sync" throws="1">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<type name="ProxyCall" c:type="RestProxyCall*"/>
</instance-parameter>
</parameters>
</method>
<method name="upload" c:identifier="rest_proxy_call_upload" throws="1">
<doc xml:space="preserve">Asynchronously invoke @call but expect to have the callback invoked every time a
chunk of our request's body is written.
When the callback is invoked with the uploaded byte count equaling the message
byte count, the call has completed.
If @weak_object is disposed during the call then this call will be
cancelled. If the call is cancelled then the callback will be invoked with
an error state.
You may unref the call after calling this function since there is an
internal reference, or you may unref in the callback.</doc>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="call" transfer-ownership="none">
<doc xml:space="preserve">The #RestProxyCall</doc>
<type name="ProxyCall" c:type="RestProxyCall*"/>
</instance-parameter>
<parameter name="callback"
transfer-ownership="none"
scope="async"
closure="2">
<doc xml:space="preserve">a #RestProxyCallUploadCallback to invoke when a chunk
of data was uploaded</doc>
<type name="ProxyCallUploadCallback"
c:type="RestProxyCallUploadCallback"/>
</parameter>
<parameter name="weak_object" transfer-ownership="none">
<doc xml:space="preserve">The #GObject to weakly reference and tie the lifecycle to</doc>
<type name="GObject.Object" c:type="GObject*"/>
</parameter>
<parameter name="userdata"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">data to pass to @callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</method>
<property name="proxy"
writable="1"
construct-only="1"
transfer-ownership="none">
<type name="Proxy"/>
</property>
<field name="parent">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="priv">
<type name="ProxyCallPrivate" c:type="RestProxyCallPrivate*"/>
</field>
</class>
<callback name="ProxyCallAsyncCallback"
c:type="RestProxyCallAsyncCallback">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="call" transfer-ownership="none">
<type name="ProxyCall" c:type="RestProxyCall*"/>
</parameter>
<parameter name="error" transfer-ownership="none">
<type name="GLib.Error" c:type="const GError*"/>
</parameter>
<parameter name="weak_object" transfer-ownership="none">
<type name="GObject.Object" c:type="GObject*"/>
</parameter>
<parameter name="userdata"
transfer-ownership="none"
nullable="1"
allow-none="1">
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</callback>
<record name="ProxyCallClass"
c:type="RestProxyCallClass"
glib:is-gtype-struct-for="ProxyCall">
<doc xml:space="preserve">Class structure for #RestProxyCall for subclasses to implement specialised
behaviour.</doc>
<field name="parent_class" readable="0" private="1">
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
<field name="prepare">
<callback name="prepare" throws="1">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="call" transfer-ownership="none">
<type name="ProxyCall" c:type="RestProxyCall*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="serialize_params">
<callback name="serialize_params" throws="1">
<return-value transfer-ownership="none">
<doc xml:space="preserve">TRUE if the serialization was successful, FALSE otherwise.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="call" transfer-ownership="none">
<doc xml:space="preserve">The #RestProxyCall</doc>
<type name="ProxyCall" c:type="RestProxyCall*"/>
</parameter>
<parameter name="content_type"
direction="out"
caller-allocates="0"
transfer-ownership="full">
<doc xml:space="preserve">Content type of the payload</doc>
<type name="utf8" c:type="gchar**"/>
</parameter>
<parameter name="content"
direction="out"
caller-allocates="0"
transfer-ownership="full">
<doc xml:space="preserve">The payload</doc>
<type name="utf8" c:type="gchar**"/>
</parameter>
<parameter name="content_len"
direction="out"
caller-allocates="0"
transfer-ownership="full">
<doc xml:space="preserve">Length of the payload data</doc>
<type name="gsize" c:type="gsize*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="_padding_dummy" readable="0" private="1">
<array zero-terminated="0" c:type="gpointer" fixed-size="7">
<type name="gpointer" c:type="gpointer"/>
</array>
</field>
</record>
<callback name="ProxyCallContinuousCallback"
c:type="RestProxyCallContinuousCallback">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="call" transfer-ownership="none">
<type name="ProxyCall" c:type="RestProxyCall*"/>
</parameter>
<parameter name="buf" transfer-ownership="none">
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="len" transfer-ownership="none">
<type name="gsize" c:type="gsize"/>
</parameter>
<parameter name="error" transfer-ownership="none">
<type name="GLib.Error" c:type="const GError*"/>
</parameter>
<parameter name="weak_object" transfer-ownership="none">
<type name="GObject.Object" c:type="GObject*"/>
</parameter>
<parameter name="userdata"
transfer-ownership="none"
nullable="1"
allow-none="1">
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</callback>
<enumeration name="ProxyCallError"
glib:type-name="RestProxyCallError"
glib:get-type="rest_proxy_call_error_get_type"
c:type="RestProxyCallError"
glib:error-domain="rest-proxy-call-error-quark">
<doc xml:space="preserve">Error domain used when returning errors from #RestProxyCall.</doc>
<member name="failed"
value="0"
c:identifier="REST_PROXY_CALL_FAILED"
glib:nick="failed">
<doc xml:space="preserve">the method call failed</doc>
</member>
<function name="quark" c:identifier="rest_proxy_call_error_quark">
<return-value transfer-ownership="none">
<type name="GLib.Quark" c:type="GQuark"/>
</return-value>
</function>
</enumeration>
<record name="ProxyCallPrivate"
c:type="RestProxyCallPrivate"
disguised="1">
</record>
<callback name="ProxyCallUploadCallback"
c:type="RestProxyCallUploadCallback">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="call" transfer-ownership="none">
<type name="ProxyCall" c:type="RestProxyCall*"/>
</parameter>
<parameter name="total" transfer-ownership="none">
<type name="gsize" c:type="gsize"/>
</parameter>
<parameter name="uploaded" transfer-ownership="none">
<type name="gsize" c:type="gsize"/>
</parameter>
<parameter name="error" transfer-ownership="none">
<type name="GLib.Error" c:type="const GError*"/>
</parameter>
<parameter name="weak_object" transfer-ownership="none">
<type name="GObject.Object" c:type="GObject*"/>
</parameter>
<parameter name="userdata"
transfer-ownership="none"
nullable="1"
allow-none="1">
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</callback>
<record name="ProxyClass"
c:type="RestProxyClass"
glib:is-gtype-struct-for="Proxy">
<doc xml:space="preserve">Class structure for #RestProxy for subclasses to implement specialised
behaviour.
Typically subclasses will override @new_call to construct a subclass of
#RestProxyCall.</doc>
<field name="parent_class" readable="0" private="1">
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
<field name="bind_valist" introspectable="0">
<callback name="bind_valist" introspectable="0">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="proxy" transfer-ownership="none">
<type name="Proxy" c:type="RestProxy*"/>
</parameter>
<parameter name="params" transfer-ownership="none">
<type name="va_list" c:type="va_list"/>
</parameter>
</parameters>
</callback>
</field>
<field name="new_call">
<callback name="new_call">
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new #RestProxyCall.</doc>
<type name="ProxyCall" c:type="RestProxyCall*"/>
</return-value>
<parameters>
<parameter name="proxy" transfer-ownership="none">
<doc xml:space="preserve">the #RestProxy</doc>
<type name="Proxy" c:type="RestProxy*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="simple_run_valist" introspectable="0">
<callback name="simple_run_valist" introspectable="0">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="proxy" transfer-ownership="none">
<type name="Proxy" c:type="RestProxy*"/>
</parameter>
<parameter name="payload" transfer-ownership="none">
<type name="utf8" c:type="gchar**"/>
</parameter>
<parameter name="len" transfer-ownership="none">
<type name="gint64" c:type="goffset*"/>
</parameter>
<parameter name="error" transfer-ownership="none">
<type name="GLib.Error" c:type="GError**"/>
</parameter>
<parameter name="params" transfer-ownership="none">
<type name="va_list" c:type="va_list"/>
</parameter>
</parameters>
</callback>
</field>
<field name="authenticate">
<callback name="authenticate">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="proxy" transfer-ownership="none">
<type name="Proxy" c:type="RestProxy*"/>
</parameter>
<parameter name="auth" transfer-ownership="none">
<type name="ProxyAuth" c:type="RestProxyAuth*"/>
</parameter>
<parameter name="retrying" transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</callback>
</field>
<field name="_padding_dummy" readable="0" private="1">
<array zero-terminated="0" c:type="gpointer" fixed-size="7">
<type name="gpointer" c:type="gpointer"/>
</array>
</field>
</record>
<enumeration name="ProxyError"
glib:type-name="RestProxyError"
glib:get-type="rest_proxy_error_get_type"
c:type="RestProxyError"
glib:error-domain="rest-proxy-error-quark">
<doc xml:space="preserve">Error domain used when returning errors from a #RestProxy.</doc>
<member name="cancelled"
value="1"
c:identifier="REST_PROXY_ERROR_CANCELLED"
glib:nick="cancelled">
<doc xml:space="preserve">Cancelled</doc>
</member>
<member name="resolution"
value="2"
c:identifier="REST_PROXY_ERROR_RESOLUTION"
glib:nick="resolution">
<doc xml:space="preserve">Resolution</doc>
</member>
<member name="connection"
value="3"
c:identifier="REST_PROXY_ERROR_CONNECTION"
glib:nick="connection">
<doc xml:space="preserve">Connection</doc>
</member>
<member name="ssl"
value="4"
c:identifier="REST_PROXY_ERROR_SSL"
glib:nick="ssl">
<doc xml:space="preserve">SSL</doc>
</member>
<member name="io"
value="5"
c:identifier="REST_PROXY_ERROR_IO"
glib:nick="io">
<doc xml:space="preserve">Input/Output</doc>
</member>
<member name="failed"
value="6"
c:identifier="REST_PROXY_ERROR_FAILED"
glib:nick="failed">
<doc xml:space="preserve">Failure</doc>
</member>
<member name="http_multiple_choices"
value="300"
c:identifier="REST_PROXY_ERROR_HTTP_MULTIPLE_CHOICES"
glib:nick="http-multiple-choices">
<doc xml:space="preserve">HTTP/Multiple choices</doc>
</member>
<member name="http_moved_permanently"
value="301"
c:identifier="REST_PROXY_ERROR_HTTP_MOVED_PERMANENTLY"
glib:nick="http-moved-permanently">
<doc xml:space="preserve">HTTP/Moved permanently</doc>
</member>
<member name="http_found"
value="302"
c:identifier="REST_PROXY_ERROR_HTTP_FOUND"
glib:nick="http-found">
<doc xml:space="preserve">HTTP/Found</doc>
</member>
<member name="http_see_other"
value="303"
c:identifier="REST_PROXY_ERROR_HTTP_SEE_OTHER"
glib:nick="http-see-other">
<doc xml:space="preserve">HTTP/See other</doc>
</member>
<member name="http_not_modified"
value="304"
c:identifier="REST_PROXY_ERROR_HTTP_NOT_MODIFIED"
glib:nick="http-not-modified">
<doc xml:space="preserve">HTTP/Not modified</doc>
</member>
<member name="http_use_proxy"
value="305"
c:identifier="REST_PROXY_ERROR_HTTP_USE_PROXY"
glib:nick="http-use-proxy">
<doc xml:space="preserve">HTTP/Use proxy</doc>
</member>
<member name="http_threeohsix"
value="306"
c:identifier="REST_PROXY_ERROR_HTTP_THREEOHSIX"
glib:nick="http-threeohsix">
<doc xml:space="preserve">HTTP/306</doc>
</member>
<member name="http_temporary_redirect"
value="307"
c:identifier="REST_PROXY_ERROR_HTTP_TEMPORARY_REDIRECT"
glib:nick="http-temporary-redirect">
<doc xml:space="preserve">HTTP/Temporary redirect</doc>
</member>
<member name="http_bad_request"
value="400"
c:identifier="REST_PROXY_ERROR_HTTP_BAD_REQUEST"
glib:nick="http-bad-request">
<doc xml:space="preserve">HTTP/Bad request</doc>
</member>
<member name="http_unauthorized"
value="401"
c:identifier="REST_PROXY_ERROR_HTTP_UNAUTHORIZED"
glib:nick="http-unauthorized">
<doc xml:space="preserve">HTTP/Unauthorized</doc>
</member>
<member name="http_fourohtwo"
value="402"
c:identifier="REST_PROXY_ERROR_HTTP_FOUROHTWO"
glib:nick="http-fourohtwo">
<doc xml:space="preserve">HTTP/402</doc>
</member>
<member name="http_forbidden"
value="403"
c:identifier="REST_PROXY_ERROR_HTTP_FORBIDDEN"
glib:nick="http-forbidden">
<doc xml:space="preserve">HTTP/Forbidden</doc>
</member>
<member name="http_not_found"
value="404"
c:identifier="REST_PROXY_ERROR_HTTP_NOT_FOUND"
glib:nick="http-not-found">
<doc xml:space="preserve">HTTP/Not found</doc>
</member>
<member name="http_method_not_allowed"
value="405"
c:identifier="REST_PROXY_ERROR_HTTP_METHOD_NOT_ALLOWED"
glib:nick="http-method-not-allowed">
<doc xml:space="preserve">HTTP/Method not allowed</doc>
</member>
<member name="http_not_acceptable"
value="406"
c:identifier="REST_PROXY_ERROR_HTTP_NOT_ACCEPTABLE"
glib:nick="http-not-acceptable">
<doc xml:space="preserve">HTTP/Not acceptable</doc>
</member>
<member name="http_proxy_authentication_required"
value="407"
c:identifier="REST_PROXY_ERROR_HTTP_PROXY_AUTHENTICATION_REQUIRED"
glib:nick="http-proxy-authentication-required">
<doc xml:space="preserve">HTTP/Proxy authentication required</doc>
</member>
<member name="http_request_timeout"
value="408"
c:identifier="REST_PROXY_ERROR_HTTP_REQUEST_TIMEOUT"
glib:nick="http-request-timeout">
<doc xml:space="preserve">HTTP/Request timeout</doc>
</member>
<member name="http_conflict"
value="409"
c:identifier="REST_PROXY_ERROR_HTTP_CONFLICT"
glib:nick="http-conflict">
<doc xml:space="preserve">HTTP/Conflict</doc>
</member>
<member name="http_gone"
value="410"
c:identifier="REST_PROXY_ERROR_HTTP_GONE"
glib:nick="http-gone">
<doc xml:space="preserve">HTTP/Gone</doc>
</member>
<member name="http_length_required"
value="411"
c:identifier="REST_PROXY_ERROR_HTTP_LENGTH_REQUIRED"
glib:nick="http-length-required">
<doc xml:space="preserve">HTTP/Length required</doc>
</member>
<member name="http_precondition_failed"
value="412"
c:identifier="REST_PROXY_ERROR_HTTP_PRECONDITION_FAILED"
glib:nick="http-precondition-failed">
<doc xml:space="preserve">HTTP/Precondition failed</doc>
</member>
<member name="http_request_entity_too_large"
value="413"
c:identifier="REST_PROXY_ERROR_HTTP_REQUEST_ENTITY_TOO_LARGE"
glib:nick="http-request-entity-too-large">
<doc xml:space="preserve">HTTP/Request entity too large</doc>
</member>
<member name="http_request_uri_too_long"
value="414"
c:identifier="REST_PROXY_ERROR_HTTP_REQUEST_URI_TOO_LONG"
glib:nick="http-request-uri-too-long">
<doc xml:space="preserve">HTTP/Request URI too long</doc>
</member>
<member name="http_unsupported_media_type"
value="415"
c:identifier="REST_PROXY_ERROR_HTTP_UNSUPPORTED_MEDIA_TYPE"
glib:nick="http-unsupported-media-type">
<doc xml:space="preserve">HTTP/Unsupported media type</doc>
</member>
<member name="http_requested_range_not_satisfiable"
value="416"
c:identifier="REST_PROXY_ERROR_HTTP_REQUESTED_RANGE_NOT_SATISFIABLE"
glib:nick="http-requested-range-not-satisfiable">
<doc xml:space="preserve">HTTP/Requested range not satisfiable</doc>
</member>
<member name="http_expectation_failed"
value="417"
c:identifier="REST_PROXY_ERROR_HTTP_EXPECTATION_FAILED"
glib:nick="http-expectation-failed">
<doc xml:space="preserve">HTTP/Expectation failed</doc>
</member>
<member name="http_internal_server_error"
value="500"
c:identifier="REST_PROXY_ERROR_HTTP_INTERNAL_SERVER_ERROR"
glib:nick="http-internal-server-error">
<doc xml:space="preserve">HTTP/Internal server error</doc>
</member>
<member name="http_not_implemented"
value="501"
c:identifier="REST_PROXY_ERROR_HTTP_NOT_IMPLEMENTED"
glib:nick="http-not-implemented">
<doc xml:space="preserve">HTTP/Not implemented</doc>
</member>
<member name="http_bad_gateway"
value="502"
c:identifier="REST_PROXY_ERROR_HTTP_BAD_GATEWAY"
glib:nick="http-bad-gateway">
<doc xml:space="preserve">HTTP/Bad gateway</doc>
</member>
<member name="http_service_unavailable"
value="503"
c:identifier="REST_PROXY_ERROR_HTTP_SERVICE_UNAVAILABLE"
glib:nick="http-service-unavailable">
<doc xml:space="preserve">HTTP/Service unavailable</doc>
</member>
<member name="http_gateway_timeout"
value="504"
c:identifier="REST_PROXY_ERROR_HTTP_GATEWAY_TIMEOUT"
glib:nick="http-gateway-timeout">
<doc xml:space="preserve">HTTP/Gateway timeout</doc>
</member>
<member name="http_http_version_not_supported"
value="505"
c:identifier="REST_PROXY_ERROR_HTTP_HTTP_VERSION_NOT_SUPPORTED"
glib:nick="http-http-version-not-supported">
<doc xml:space="preserve">HTTP/Version not supported</doc>
</member>
<function name="quark" c:identifier="rest_proxy_error_quark">
<return-value transfer-ownership="none">
<type name="GLib.Quark" c:type="GQuark"/>
</return-value>
</function>
</enumeration>
<record name="XmlNode"
c:type="RestXmlNode"
glib:type-name="RestXmlNode"
glib:get-type="rest_xml_node_get_type"
c:symbol-prefix="xml_node">
<field name="ref_count" readable="0" private="1">
<type name="gint" c:type="volatile int"/>
</field>
<field name="name" writable="1">
<doc xml:space="preserve">the name of the element</doc>
<type name="utf8" c:type="gchar*"/>
</field>
<field name="content" writable="1">
<doc xml:space="preserve">the textual content of the element</doc>
<type name="utf8" c:type="gchar*"/>
</field>
<field name="children" writable="1">
<doc xml:space="preserve">a #GHashTable of string name to #RestXmlNode for the children of
the element.</doc>
<type name="GLib.HashTable" c:type="GHashTable*">
<type name="gpointer" c:type="gpointer"/>
<type name="gpointer" c:type="gpointer"/>
</type>
</field>
<field name="attrs" writable="1">
<doc xml:space="preserve">a #GHashTable of string name to string values for the attributes of
the element.</doc>
<type name="GLib.HashTable" c:type="GHashTable*">
<type name="gpointer" c:type="gpointer"/>
<type name="gpointer" c:type="gpointer"/>
</type>
</field>
<field name="next" writable="1">
<doc xml:space="preserve">the sibling #RestXmlNode with the same name</doc>
<type name="XmlNode" c:type="RestXmlNode*"/>
</field>
<method name="add_attr" c:identifier="rest_xml_node_add_attr">
<doc xml:space="preserve">Adds attribute to the given node.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="node" transfer-ownership="none">
<doc xml:space="preserve">#RestXmlNode to add attribute to</doc>
<type name="XmlNode" c:type="RestXmlNode*"/>
</instance-parameter>
<parameter name="attribute" transfer-ownership="none">
<doc xml:space="preserve">name of the attribute</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<doc xml:space="preserve">value to set attribute to</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</method>
<method name="add_child" c:identifier="rest_xml_node_add_child">
<doc xml:space="preserve">Adds a new node to the given parent node; to create the top-level node,
parent should be %NULL.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the newly added #RestXmlNode; the node object
is owned by, and valid for the life time of, the #RestXmlCreator.</doc>
<type name="XmlNode" c:type="RestXmlNode*"/>
</return-value>
<parameters>
<instance-parameter name="parent" transfer-ownership="none">
<doc xml:space="preserve">parent #RestXmlNode, or %NULL for the top-level node</doc>
<type name="XmlNode" c:type="RestXmlNode*"/>
</instance-parameter>
<parameter name="tag" transfer-ownership="none">
<doc xml:space="preserve">name of the child node</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</method>
<method name="find" c:identifier="rest_xml_node_find">
<doc xml:space="preserve">Searches for the first child node of @start named @tag.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">the first child node, or %NULL if it doesn't exist.</doc>
<type name="XmlNode" c:type="RestXmlNode*"/>
</return-value>
<parameters>
<instance-parameter name="start" transfer-ownership="none">
<doc xml:space="preserve">a #RestXmlNode</doc>
<type name="XmlNode" c:type="RestXmlNode*"/>
</instance-parameter>
<parameter name="tag" transfer-ownership="none">
<doc xml:space="preserve">the name of a node</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="free" c:identifier="rest_xml_node_free">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="node" transfer-ownership="none">
<type name="XmlNode" c:type="RestXmlNode*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_attr" c:identifier="rest_xml_node_get_attr">
<doc xml:space="preserve">Get the value of the attribute named @attr_name, or %NULL if it doesn't
exist.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the attribute value. This string is owned by #RestXmlNode and should
not be freed.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="node" transfer-ownership="none">
<doc xml:space="preserve">a #RestXmlNode</doc>
<type name="XmlNode" c:type="RestXmlNode*"/>
</instance-parameter>
<parameter name="attr_name" transfer-ownership="none">
<doc xml:space="preserve">the name of an attribute</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="print" c:identifier="rest_xml_node_print">
<doc xml:space="preserve">Recursively outputs given node and it's children.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">xml string representing the node.</doc>
<type name="utf8" c:type="char*"/>
</return-value>
<parameters>
<instance-parameter name="node" transfer-ownership="none">
<doc xml:space="preserve">#RestXmlNode</doc>
<type name="XmlNode" c:type="RestXmlNode*"/>
</instance-parameter>
</parameters>
</method>
<method name="ref" c:identifier="rest_xml_node_ref" introspectable="0">
<doc xml:space="preserve">Increases the reference count of @node.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">the same @node.</doc>
<type name="XmlNode" c:type="RestXmlNode*"/>
</return-value>
<parameters>
<instance-parameter name="node" transfer-ownership="none">
<doc xml:space="preserve">a #RestXmlNode</doc>
<type name="XmlNode" c:type="RestXmlNode*"/>
</instance-parameter>
</parameters>
</method>
<method name="set_content" c:identifier="rest_xml_node_set_content">
<doc xml:space="preserve">Sets content for the given node.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="node" transfer-ownership="none">
<doc xml:space="preserve">#RestXmlNode to set content</doc>
<type name="XmlNode" c:type="RestXmlNode*"/>
</instance-parameter>
<parameter name="value" transfer-ownership="none">
<doc xml:space="preserve">the content</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</method>
<method name="unref"
c:identifier="rest_xml_node_unref"
introspectable="0">
<doc xml:space="preserve">Decreases the reference count of @node. When its reference count drops to 0,
the node is finalized (i.e. its memory is freed).</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="node" transfer-ownership="none">
<doc xml:space="preserve">a #RestXmlNode</doc>
<type name="XmlNode" c:type="RestXmlNode*"/>
</instance-parameter>
</parameters>
</method>
</record>
<class name="XmlParser"
c:symbol-prefix="xml_parser"
c:type="RestXmlParser"
parent="GObject.Object"
glib:type-name="RestXmlParser"
glib:get-type="rest_xml_parser_get_type"
glib:type-struct="XmlParserClass">
<constructor name="new" c:identifier="rest_xml_parser_new">
<doc xml:space="preserve">Create a new #RestXmlParser, for parsing XML documents.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new #RestXmlParser.</doc>
<type name="XmlParser" c:type="RestXmlParser*"/>
</return-value>
</constructor>
<method name="parse_from_data"
c:identifier="rest_xml_parser_parse_from_data">
<doc xml:space="preserve">Parse the XML in @data, and return a new #RestXmlNode. If @data is invalid
XML, %NULL is returned.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new #RestXmlNode, or %NULL if the XML was invalid.</doc>
<type name="XmlNode" c:type="RestXmlNode*"/>
</return-value>
<parameters>
<instance-parameter name="parser" transfer-ownership="none">
<doc xml:space="preserve">a #RestXmlParser</doc>
<type name="XmlParser" c:type="RestXmlParser*"/>
</instance-parameter>
<parameter name="data" transfer-ownership="none">
<doc xml:space="preserve">the XML content to parse</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="len" transfer-ownership="none">
<doc xml:space="preserve">the length of @data, or -1 if @data is a nul-terminated string</doc>
<type name="gint64" c:type="goffset"/>
</parameter>
</parameters>
</method>
<field name="parent">
<type name="GObject.Object" c:type="GObject"/>
</field>
</class>
<record name="XmlParserClass"
c:type="RestXmlParserClass"
glib:is-gtype-struct-for="XmlParser">
<field name="parent_class">
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
</record>
<function name="hmac_sha1" c:identifier="hmac_sha1">
<return-value transfer-ownership="full">
<type name="utf8" c:type="char*"/>
</return-value>
<parameters>
<parameter name="key" transfer-ownership="none">
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="message" transfer-ownership="none">
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</function>
<function name="proxy_call_error_quark"
c:identifier="rest_proxy_call_error_quark"
moved-to="ProxyCallError.quark">
<return-value transfer-ownership="none">
<type name="GLib.Quark" c:type="GQuark"/>
</return-value>
</function>
<function name="proxy_error_quark"
c:identifier="rest_proxy_error_quark"
moved-to="ProxyError.quark">
<return-value transfer-ownership="none">
<type name="GLib.Quark" c:type="GQuark"/>
</return-value>
</function>
</namespace>
</repository>
|