- public void add_header (string header, string value)
Add a header called header with the value value
to the call.
- public void add_headers (...)
Add the specified header name and value pairs to the call.
- public void add_param (string name, string value)
Add a query parameter called param with the string value
value to the call.
- public void add_param_full (owned Param param)
Add a query parameter param to the call.
- public void add_params (...)
Add the specified parameter name and value pairs to the call.
- public bool cancel ()
Cancel this call.
- public bool continuous (ProxyCallContinuousCallback callback, Object weak_object) throws Error
Asynchronously invoke this but
expect a continuous stream of content.
- public unowned string get_function ()
Get the REST function that is going to be called on the proxy.
- public unowned string get_method ()
Get the HTTP method to use when making the call, for example GET or
POST.
- public unowned Params get_params ()
Get the parameters as a
Params of parameter names to values.
- public unowned string get_payload ()
Get the return payload.
- public int64 get_payload_length ()
Get the length of the return payload.
- public HashTable<unowned string,unowned string> get_response_headers ()
- public uint get_status_code ()
Get the HTTP status code for the call.
- public unowned string get_status_message ()
Get the human-readable HTTP status message for the call.
- public async bool invoke_async (Cancellable? cancellable) throws Error
- public unowned string lookup_header (string header)
Get the value of the header called header.
- public Param lookup_param (string name)
Get the value of the parameter called name.
- public unowned string lookup_response_header (string header)
Get the string value of the header header or
null if that header is not present or there are no headers.
- public virtual bool prepare () throws Error
Virtual function called before making the request, This allows the
call to be modified, for example to add a signature.
- public void remove_header (string header)
Remove the header named header from the call.
- public void remove_param (string name)
Remove the parameter named name from the call.
- public bool run (out unowned MainLoop loop = null) throws Error
- public bool run_async (ProxyCallAsyncCallback callback, Object? weak_object = null) throws Error
Asynchronously invoke this.
- public virtual bool serialize_params (out string content_type, out string content, out size_t content_len) throws Error
Invoker for a virtual method to serialize the parameters for this
ProxyCall.
- public void set_function (string function)
Set the REST "function" to call on the proxy.
- public void set_method (string method)
Set the HTTP method to use when making the call, for example GET or
POST.
- public bool sync () throws Error
Synchronously invokes this.
- public bool upload (ProxyCallUploadCallback callback, Object weak_object) throws Error
Asynchronously invoke this but
expect to have the callback invoked every time a chunk of our request's body is written.