  We study the optimal domain for the Hardy operator considered with values in
a rearrangement invariant space. In particular, this domain can be represented
as the space of integrable functions with respect to a vector measure defined
on a $\delta$-ring. A precise description is given for the case of the minimal
Lorentz spaces.
