http buffer managing