http: manual buffer copy on write