summaryrefslogtreecommitdiff
path: root/rest/rest-proxy.c
diff options
context:
space:
mode:
authorRoss Burton <ross@linux.intel.com>2008-09-19 09:15:38 +0100
committerRoss Burton <ross@linux.intel.com>2008-09-19 09:15:38 +0100
commit2d0e099172437b6d1eef6f68cda2517d396e6588 (patch)
tree0f14d65a045c62b96e39c23bfe9f465478e1e336 /rest/rest-proxy.c
parent729bccd795c4887d05f6f0f3c14f23fbd0069bba (diff)
downloadlibrest-2d0e099172437b6d1eef6f68cda2517d396e6588.tar.gz
Document rest_proxy_new
Diffstat (limited to 'rest/rest-proxy.c')
-rw-r--r--rest/rest-proxy.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/rest/rest-proxy.c b/rest/rest-proxy.c
index a42fd22..26b0449 100644
--- a/rest/rest-proxy.c
+++ b/rest/rest-proxy.c
@@ -164,6 +164,20 @@ rest_proxy_init (RestProxy *self)
priv->session = soup_session_async_new ();
}
+/**
+ * rest_proxy_new:
+ * @url_format: the endpoint URL
+ * @binding_required: whether the URL needs to be bound before calling
+ *
+ * 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.
+ *
+ * Returns: A new #RestProxy.
+ */
RestProxy *
rest_proxy_new (const gchar *url_format,
gboolean binding_required)