class RecordHeaders implements Headers {

    @Override
    public Headers remove(String key) throws IllegalStateException {
        canWrite();
        checkKey(key);
        Iterator<Header> iterator = iterator();
        while (iterator.hasNext()) {
            if (iterator.next().key().equals(key)) {
                iterator.remove();
            }
        }
        return this;
    }

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

}