Gio.ProxyResolver.lookup_async

### Method

# Gio ProxyResolverlookup_async

since: 2.26

#### Declaration [src]

    void
    g_proxy_resolver_lookup_async (
      GProxyResolver* resolver,
      const gchar* uri,
      GCancellable* cancellable,
      GAsyncReadyCallback callback,
      gpointer user_data
    )

#### Description [src]

Asynchronous lookup of proxy. See `g_proxy_resolver_lookup()` for more details.

Available since: 2.26

This method completes asynchronously. Use `g_proxy_resolver_lookup_finish()` inside the `GAsyncReadyCallback` to obtain the result of the operation.

#### Parameters

`uri`

  Type: `const gchar*`

  A URI representing the destination to connect to.

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

`cancellable`

  Type: `GCancellable`

  A `GCancellable`, or `NULL`.

  The argument can be `NULL`.
  The data is owned by the caller of the method.

`callback`

  Type: `GAsyncReadyCallback`

  Callback to call after resolution completes.

  The argument can be `NULL`.

`user_data`

  Type: `gpointer`

  Data for `callback`.

  The argument can be `NULL`.
  The data is owned by the caller of the method.