Wireshark: extract HTTP objects from captured traffic

Looking for an elegant way to extract HTTP objects (images, javascript, …) from a pcap file?

Open the pcap file under wireshark then click on FILE => Export => Objects => HTTP.