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.
this | |
uri |
URI of the resource to read |
out_href |
optional return location for href of the resource, or |
out_etag |
optional return location for etag of the resource, or |
out_headers |
optional return location for response MessageHeaders, or |
out_stream |
a OutputStream to write data to |
cancellable |
optional Cancellable object, or |
Whether succeeded. |