The Rap of the Lock is composed in mock-epic literary form.
To add, mock-heroic, mock-epic or heroi-comic works are typically satires or parodies that mock common Classical stereotypes of heroes and heroic literature. usually, mock-epic works either put a fool in the role of the hero or exaggerate the heroic qualities to such a point that they become absurd.