| Top |
| RestProxy * | rest_proxy_new () |
| gboolean | rest_proxy_bind () |
| gboolean | rest_proxy_bind_valist () |
| void | rest_proxy_set_user_agent () |
| const gchar * | rest_proxy_get_user_agent () |
| RestProxyCall * | rest_proxy_new_call () |
| gboolean | rest_proxy_simple_run () |
| gboolean | rest_proxy_simple_run_valist () |
| gboolean | binding-required | Read / Write |
| gboolean | disable-cookies | Read / Write / Construct Only |
| gchar * | url-format | Read / Write |
| gchar * | user-agent | Read / Write |
| struct | RestProxy |
| struct | RestProxyClass |
| #define | REST_PROXY_ERROR |
| enum | RestProxyError |
GObject
╰── RestProxy
├── FlickrProxy
├── LastfmProxy
├── OAuth2Proxy
╰── OAuthProxy
RestProxy * rest_proxy_new (const gchar *url_format,gboolean binding_required);
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.
void rest_proxy_set_user_agent (RestProxy *proxy,const char *user_agent);
gboolean rest_proxy_simple_run (RestProxy *proxy,gchar **payload,goffset *len,GError **error,...);
gboolean rest_proxy_simple_run_valist (RestProxy *proxy,gchar **payload,goffset *len,GError **error,va_list params);
struct RestProxyClass {
gboolean (*bind_valist)(RestProxy *proxy, va_list params);
RestProxyCall *(*new_call)(RestProxy *proxy);
gboolean (*simple_run_valist)(RestProxy *proxy, gchar **payload,
goffset *len, GError **error, va_list params);
};
Class structure for RestProxy for subclasses to implement specialised behaviour.
Typically subclasses will override new_call
to construct a subclass of
RestProxyCall.
Virtual function called to bind parameters. |
||
Virtual function called to construct a new RestProxyCall. |
||
Virtual function called when making a "simple" call. |
“binding-required” property “binding-required” gboolean
Whether the URL format requires binding.
Flags: Read / Write
Default value: FALSE
“disable-cookies” property “disable-cookies” gboolean
Whether to disable cookie support.
Flags: Read / Write / Construct Only
Default value: FALSE
“url-format” property “url-format” gchar *
Format string for the RESTful url.
Flags: Read / Write
Default value: NULL