It seams that getResponseHeaders refers to the actual content and not the headers. I tried as in the example:
// display all returned headers
Stdout (client.getResponseHeaders);
but it just displays the name of the result: tango.net.http.HttpHeaders?.HttpHeadersView?
Also did that:
auto headers = client.getResponseHeaders();
foreach (header; headers)
{
Stdout.formatln("header: {} = {}", header.name.value, header.value);
}
but it shows the page content...
Can someone show me how to dump the headers? Perhaps I am doing it all wrong.