new HTTPReader implementation replaces the http_read_sock method