http: Split out the non-chunked buffer reading part from http_read