diff options
author | Ross Burton <ross@linux.intel.com> | 2008-09-19 09:15:38 +0100 |
---|---|---|
committer | Ross Burton <ross@linux.intel.com> | 2008-09-19 09:15:38 +0100 |
commit | 2d0e099172437b6d1eef6f68cda2517d396e6588 (patch) | |
tree | 0f14d65a045c62b96e39c23bfe9f465478e1e336 /rest/rest-proxy.c | |
parent | 729bccd795c4887d05f6f0f3c14f23fbd0069bba (diff) | |
download | librest-2d0e099172437b6d1eef6f68cda2517d396e6588.tar.gz |
Document rest_proxy_new
Diffstat (limited to 'rest/rest-proxy.c')
-rw-r--r-- | rest/rest-proxy.c | 14 |
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) |