Reading headers without putting data into memory