Description

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

Since multiple requests can occur if Efl.Net.Dialer.Http.allow_redirects is true, then all headers will be accumulated. To know when a new request's been 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"

This means the original request had a redirect to http://someredirect.com.

To receive an iterator to only the last request, use Efl.Net.Dialer.Http.response_headers_get

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

Since 1.19

Signature

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

C signature

Implemented by

  • Efl.Net.Dialer.Http.response_headers_all_get