From 68d90e9e315d279aebe04d6b1177e57c075b8f72 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Wed, 11 Dec 2013 15:27:23 +0100 Subject: Add rest_proxy_add_soup_feature() This function can be helpful if one wants more control over libsoup features than what librest simple API provide. For example, to get full access to libsoup cookie API (say to be able to add arbitrary cookies to the soup session), one can do: 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); It's then possible to use all the soup_cookie_* methods to deal with cookies. https://bugzilla.gnome.org/show_bug.cgi?id=728340 --- docs/reference/rest/rest-sections.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'docs') diff --git a/docs/reference/rest/rest-sections.txt b/docs/reference/rest/rest-sections.txt index 66950fe..2395bb7 100644 --- a/docs/reference/rest/rest-sections.txt +++ b/docs/reference/rest/rest-sections.txt @@ -116,6 +116,7 @@ rest_proxy_bind rest_proxy_bind_valist rest_proxy_set_user_agent rest_proxy_get_user_agent +rest_proxy_add_soup_feature rest_proxy_new_call rest_proxy_simple_run rest_proxy_simple_run_valist -- cgit v1.2.1