  This paper explores some important aspects of the theory of
rearrangement-invariant quasi-Banach function spaces. We focus on two main
topics. Firstly, we prove an analogue of the Luxemburg representation theorem
for rearrangement-invariant quasi-Banach function spaces over resonant measure
spaces. Secondly, we develop the theory of fundamental functions and endpoint
spaces.
