public abstract Map<String, List<String>> getHeaders () throws IOException

Returns the response headers as a Map.

Returns:  An immutable Map from response header field names to lists of field values. The status line has null as its field name.

Exceptions:
IOException    if an I/O error occurs while getting the response headers