get_sync


Description:

public bool get_sync (string uri, out string? out_href, out string? out_etag, out MessageHeaders out_headers, out unowned OutputStream out_stream, Cancellable? cancellable = null) throws Error

Reads a resource identified by uri from the server and writes it to the stream.

The URI cannot reference a collection.

Free returned pointer of out_href and out_etag, if not null, with g_free, when no longer needed.

The optional out_headers contains response headers. Free it with soup_message_headers_free, when no longer needed.

The get_data_sync can be used to read the resource data directly to memory.

Parameters:

this

an WebDAVSession

uri

URI of the resource to read

out_href

optional return location for href of the resource, or null

out_etag

optional return location for etag of the resource, or null

out_headers

optional return location for response MessageHeaders, or null

out_stream

a OutputStream to write data to

cancellable

optional Cancellable object, or null

Returns:

Whether succeeded.