public Header[] getHeaders() {
Header[] ret = new Header[headers.size()];
int i = 0;
for (final String s : headers.keySet()) {
final String v = getHeader(s);
ret[i] = new Header() {
public String getValue() {
return v;
}
public String getName() {
return s;