}
}
}
writer.println("\r\n---------------- Request ---------------------------");
StringToStringsMap headers = response.getRequestHeaders();
for (Map.Entry<String, List<String>> headerEntry : headers.entrySet()) {
if (headerEntry.getValue() != null) {
writer.println(headerEntry.getKey() + ": " + headerEntry.getValue());
}
}
byte[] rawRequestData = response.getRawRequestData();
if (rawRequestData != null) {
writer.println("\r\n" + new String(rawRequestData));
}
writer.println("\r\n---------------- Response --------------------------");
headers = response.getResponseHeaders();
for (String key : headers.keySet()) {
if (headers.get(key) != null) {
writer.println(key + ": " + headers.get(key));
}
}
String respContent = response.getContentAsString();
if (respContent != null) {