'Similar to :meth:`dict.popitem`.'

def popitem(self):

    try:
        (k, v) = next(iteritems(self))
    except StopIteration:
        raise KeyError('Header    is    empty')
    del self[k]
    return (k, v)
