Rest.ProxyCall.upload

### Method

# Rest ProxyCallupload

#### Declaration [src]

    gboolean
    rest_proxy_call_upload (
      RestProxyCall* call,
      RestProxyCallUploadCallback callback,
      GObject* weak_object,
      gpointer userdata,
      GError** error
    )

#### Description [src]

Asynchronously invoke `call` but expect to have the callback invoked every time a chunk of our request’s body is written.

When the callback is invoked with the uploaded byte count equaling the message byte count, the call has completed.

If `weak_object` is disposed during the call then this call will be cancelled. If the call is cancelled then the callback will be invoked with an error state.

You may unref the call after calling this function since there is an internal reference, or you may unref in the callback.

#### Parameters

`callback` | `RestProxyCallUploadCallback`
| A `RestProxyCallUploadCallback` to invoke when a chunk of data was uploaded.
`weak_object` | `GObject`
| The `GObject` to weakly reference and tie the lifecycle to.
| The data is owned by the caller of the function.
`userdata` | `gpointer`
| Data to pass to `callback`.
| The argument can be `NULL`.
| The data is owned by the caller of the function.
`error` | `GError **`
| The return location for a `GError*`, or `NULL`.

#### Return value

Returns: | `gboolean`
| No description available.