4
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<title>GrlNetWc</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
5
<title>Grilo Reference Manual: GrlNetWc</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7
7
<link rel="home" href="index.html" title="Grilo Reference Manual">
8
8
<link rel="up" href="grilo-net.html" title="Grilo Net Classes">
9
9
<link rel="prev" href="grilo-net.html" title="Grilo Net Classes">
10
10
<link rel="next" href="api-index-full.html" title="API Index">
11
<meta name="generator" content="GTK-Doc V1.18.1 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.19.1 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
14
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
17
<td><a accesskey="p" href="grilo-net.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
<td><a accesskey="u" href="grilo-net.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20
<th width="100%" align="center">Grilo Reference Manual</th>
21
<td><a accesskey="n" href="api-index-full.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23
<tr><td colspan="5" class="shortcuts">
24
<a href="#grilo-GrlNetWc.synopsis" class="shortcut">Top</a>
15
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
16
<td width="100%" align="left">
17
<a href="#" class="shortcut">Top</a>
26
19
<a href="#grilo-GrlNetWc.description" class="shortcut">Description</a>
21
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
22
<td><a accesskey="u" href="grilo-net.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
23
<td><a accesskey="p" href="grilo-net.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
24
<td><a accesskey="n" href="api-index-full.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
29
26
<div class="refentry">
30
27
<a name="grilo-GrlNetWc"></a><div class="titlepage"></div>
31
28
<div class="refnamediv"><table width="100%"><tr>
100
<div class="variablelist"><table border="0">
97
<div class="variablelist"><table border="0" class="variablelist">
101
99
<col align="left" valign="top">
103
103
<td><p><span class="term"><span class="type">GObject</span> <em class="structfield"><code><a name="GrlNetWc.parent"></a>parent</code></em>;</span></p></td>
104
104
<td>the parent object struct</td>
119
119
It's a simple and thin web client to be used by the sources to download
120
120
content from Internet.
122
<div class="variablelist"><table border="0">
122
<div class="variablelist"><table border="0" class="variablelist">
123
124
<col align="left" valign="top">
125
128
<td><p><span class="term"><span class="type">GObjectClass</span> <em class="structfield"><code><a name="GrlNetWcClass.parent-class"></a>parent_class</code></em>;</span></p></td>
126
129
<td>the parent class structure</td>
146
149
These constants identify all the available errors managed by
149
<div class="variablelist"><table border="0">
152
<div class="variablelist"><table border="0" class="variablelist">
150
154
<col align="left" valign="top">
153
159
<td><p><a name="GRL-NET-WC-ERROR-UNAVAILABLE:CAPS"></a><span class="term"><code class="literal">GRL_NET_WC_ERROR_UNAVAILABLE</code></span></p></td>
212
218
Creates a new <a class="link" href="grilo-GrlNetWc.html#GrlNetWc" title="struct GrlNetWc"><span class="type">GrlNetWc</span></a>.
214
<div class="variablelist"><table border="0">
220
<div class="variablelist"><table border="0" class="variablelist">
215
222
<col align="left" valign="top">
217
226
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
218
227
<td>a new allocated instance of <a class="link" href="grilo-GrlNetWc.html#GrlNetWc" title="struct GrlNetWc"><span class="type">GrlNetWc</span></a>. Do <code class="function">g_object_unref()</code> after
233
242
This method will flush all the pending request in the queue.
235
<div class="variablelist"><table border="0">
244
<div class="variablelist"><table border="0" class="variablelist">
236
246
<col align="left" valign="top">
238
250
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
239
251
<td>a <a class="link" href="grilo-GrlNetWc.html#GrlNetWc" title="struct GrlNetWc"><span class="type">GrlNetWc</span></a> instance</td>
252
264
Request the fetching of a web resource given the <em class="parameter"><code>uri</code></em>. This request is
253
265
asynchronous, thus the result will be returned within the <em class="parameter"><code>callback</code></em>.
255
<div class="variablelist"><table border="0">
267
<div class="variablelist"><table border="0" class="variablelist">
256
269
<col align="left" valign="top">
259
274
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
297
312
The content address will be invalidated at the next request. So if you
298
313
want to keep it, please copy it into another address.
300
<div class="variablelist"><table border="0">
315
<div class="variablelist"><table border="0" class="variablelist">
301
317
<col align="left" valign="top">
304
322
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
345
363
Request the fetching of a web resource given the <em class="parameter"><code>uri</code></em>. This request is
346
364
asynchronous, thus the result will be returned within the <em class="parameter"><code>callback</code></em>.
348
<div class="variablelist"><table border="0">
366
<div class="variablelist"><table border="0" class="variablelist">
349
368
<col align="left" valign="top">
352
373
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
374
<td><p><span class="term"><em class="parameter"><code>Varargs</code></em> :</span></p></td>
395
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
375
396
<td>List of tuples of header name and header value, terminated by
376
397
<code class="literal">NULL</code>.</td>
393
414
Request the fetching of a web resource given the <em class="parameter"><code>uri</code></em>. This request is
394
415
asynchronous, thus the result will be returned within the <em class="parameter"><code>callback</code></em>.
396
<div class="variablelist"><table border="0">
418
Rename to: grl_net_wc_request_with_headers_async
420
<div class="variablelist"><table border="0" class="variablelist">
397
422
<col align="left" valign="top">
400
427
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
438
465
supporting. If sets <code class="literal">TRUE</code>, a new cache will be created. If sets to <code class="literal">FALSE</code>,
439
466
current cache is clean and removed.
441
<div class="variablelist"><table border="0">
468
<div class="variablelist"><table border="0" class="variablelist">
442
470
<col align="left" valign="top">
445
475
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
462
492
Sets the new maximum size of cache, in Megabytes. Default value is 10. Using
463
493
0 means no cache will be done.
465
<div class="variablelist"><table border="0">
495
<div class="variablelist"><table border="0" class="variablelist">
466
497
<col align="left" valign="top">
469
502
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
486
519
Setting the log level the logger feature is added into
487
520
the libsoup session.
489
<div class="variablelist"><table border="0">
522
<div class="variablelist"><table border="0" class="variablelist">
490
524
<col align="left" valign="top">
493
529
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
509
545
Setting this property, the <a class="link" href="grilo-GrlNetWc.html#GrlNetWc" title="struct GrlNetWc"><span class="type">GrlNetWc</span></a> will queue all the requests and
510
546
will dispatch them with a pause between them of this value.
512
<div class="variablelist"><table border="0">
548
<div class="variablelist"><table border="0" class="variablelist">
513
550
<col align="left" valign="top">
516
555
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>