aboutsummaryrefslogtreecommitdiffstats
path: root/pages/develop/api/efl/net/dialer/http/method/response_headers_all_get.txt
blob: 2f08040a9b9cb3594ec651c6c0c4053e71eb2fdb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
~~Title: Efl.Net.Dialer.Http.response_headers_all_get~~
===== Signature =====

<code>
response_headers_all_get {
    return: free(iterator<ptr(Efl.Net.Http.Header)>, eina_iterator_free) @warn_unused;
}
</code>

===== C signature =====

<code c>
Eina_Iterator *efl_net_dialer_http_response_headers_all_get(Eo *obj);
</code>

===== Description =====

%%Returns an iterator to the key-value pairs for all response headers.%%

%%Since multiple requests can happen if %%[[:develop:api:efl:net:dialer:http:property:allow_redirects|Efl.Net.Dialer.Http.allow_redirects]]%% is true, then all headers will be accumulated. To know when new request is started, check for headers with keys being NULL, the value will be the "HTTP/VERSION RESPONSE" string received from the host, such as:%%

%%- key=NULL, value="HTTP/1.1 302 Found" - key="Location", value="http://someredirect.com" - key=NULL, value="HTTP/1.1 200 Ok" - key="Content-Type", value="text/html"%%

%%Which mean the original request had a redirect to http://someredirect.com.%%

%%To receive an iterator to just the last request, use %%[[:develop:api:efl:net:dialer:http:method:response_headers_get|Efl.Net.Dialer.Http.response_headers_get]]%%%%

%%This will be usable after "headers,done" event is dispatched.%%

//Since 1.19//
{{page>:develop:api-include:efl:net:dialer:http:method:response_headers_all_get:description&nouser&nolink&nodate}}

===== Implemented by =====

  * **Efl.Net.Dialer.Http.response_headers_all_get**