![]() |
![]() |
![]() |
libsoup Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Prerequisites |
Synopsis
#include <libsoup/soup.h> SoupProxyURIResolver; void (*SoupProxyURIResolverCallback) (SoupProxyURIResolver *resolver
,guint status
,SoupURI *proxy_uri
,gpointer user_data
); void soup_proxy_uri_resolver_get_proxy_uri_async (SoupProxyURIResolver *proxy_uri_resolver
,SoupURI *uri
,GMainContext *async_context
,GCancellable *cancellable
,SoupProxyURIResolverCallback callback
,gpointer user_data
); guint soup_proxy_uri_resolver_get_proxy_uri_sync (SoupProxyURIResolver *proxy_uri_resolver
,SoupURI *uri
,GCancellable *cancellable
,SoupURI **proxy_uri
);
Details
SoupProxyURIResolverCallback ()
void (*SoupProxyURIResolverCallback) (SoupProxyURIResolver *resolver
,guint status
,SoupURI *proxy_uri
,gpointer user_data
);
Callback for soup_proxy_uri_resolver_get_proxy_uri_async()
|
the SoupProxyURIResolver |
|
a SoupKnownStatusCode |
|
the resolved proxy URI, or NULL
|
|
data passed to soup_proxy_uri_resolver_get_proxy_uri_async()
|
soup_proxy_uri_resolver_get_proxy_uri_async ()
void soup_proxy_uri_resolver_get_proxy_uri_async (SoupProxyURIResolver *proxy_uri_resolver
,SoupURI *uri
,GMainContext *async_context
,GCancellable *cancellable
,SoupProxyURIResolverCallback callback
,gpointer user_data
);
Asynchronously determines a proxy URI to use for msg
and calls
callback
.
|
the SoupProxyURIResolver |
|
the SoupURI you want a proxy for |
|
the GMainContext to invoke callback in. [allow-none]
|
|
a GCancellable, or NULL
|
|
callback to invoke with the proxy address. [scope async] |
|
data for callback
|
Since 2.26.3
soup_proxy_uri_resolver_get_proxy_uri_sync ()
guint soup_proxy_uri_resolver_get_proxy_uri_sync (SoupProxyURIResolver *proxy_uri_resolver
,SoupURI *uri
,GCancellable *cancellable
,SoupURI **proxy_uri
);
Synchronously determines a proxy URI to use for uri
. If uri
should be sent via proxy, *proxy_uri
will be set to the URI of the
proxy, else it will be set to NULL
.
|
the SoupProxyURIResolver |
|
the SoupURI you want a proxy for |
|
a GCancellable, or NULL
|
|
on return, will contain the proxy URI |
Returns : |
SOUP_STATUS_OK if successful, or a transport-level
error.
|
Since 2.26.3