use bytes_to_eor to cut off reading of record at end of record
safe read and readline for reading content, will not read past the end of the payload, leaving the trailing \r\n\r\n, assuming self.bytes_to_eor is set
use streaming api, including safe reading, and use httplib to parse http record, since it supports streaming