SendRemoteFile
The Sendremotefile
HTTP middleware and the X-Sendremotefile
HTTP response headers are used to stream large files using the RoadRunner. Unlike X-Sendfile middleware Sendremotefile
allows passing a URL as header value. While the file is being streamed with the help of the RoadRunner, the PHP worker may be accepting the next request.
The middleware reads the file in 10MB chunks. For example, for the 5Gb file, only 10MB of RSS is used. If the file is smaller than 10MB, the middleware adjusts the buffer to fit the file size.
Configuration
.rr.yaml
Samples
worker.php
Last updated