Declaration [src]

rest_proxy_new (
  const gchar* url_format,
  gboolean binding_required

Description [src]

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 “”. These must be expanded using rest_proxy_bind() before invoking the proxy.


url_format const gchar*

The endpoint URL.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
binding_required gboolean

Whether the URL needs to be bound before calling.

Return value

Returns: RestProxy

A new RestProxy.

 The caller of the function takes ownership of the data, and is responsible for freeing it.