Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

how to use HttpClient.getResponseHeaders

Moderators: larsivi kris

Posted: 04/25/09 19:30:14

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:

Also did that:

auto headers = client.getResponseHeaders();
foreach (header; headers)
  Stdout.formatln("header: {} = {}",, header.value);

but it shows the page content...

Can someone show me how to dump the headers? Perhaps I am doing it all wrong.

There are no responses to display.