class RecordHeaders implements Headers {

    @Override
    public Header lastHeader(String key) {
        checkKey(key);
        for (int i = headers.size() - 1; i >= 0; i--) {
            Header header = headers.get(i);
            if (header.key().equals(key)) {
                return header;
            }
        }
        return null;
    }

    public  RecordHeaders();
    public  RecordHeaders(Header[] headers);
    public  RecordHeaders(Iterable<Header> headers);

}