Mercurial > hg > nginx
comparison src/http/ngx_http_request.h @ 5621:345e4fd4bb64
Range filter: single_range flag in request.
If set, it means that response body is going to be in more than one buffer,
hence only range requests with a single range should be honored.
The flag is now used by mp4 and cacheable upstream responses, thus allowing
range requests of mp4 files with start/end, as well as range processing
on a first request to a not-yet-cached files with proxy_cache.
Notably this makes it possible to play mp4 files (with proxy_cache, or with
mp4 module) on iOS devices, as byte-range support is required by Apple.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Fri, 21 Mar 2014 19:33:21 +0400 |
parents | 3a72b1805c52 |
children | fcb0420f90de |
comparison
equal
deleted
inserted
replaced
5620:0a567878254b | 5621:345e4fd4bb64 |
---|---|
526 | 526 |
527 unsigned main_filter_need_in_memory:1; | 527 unsigned main_filter_need_in_memory:1; |
528 unsigned filter_need_in_memory:1; | 528 unsigned filter_need_in_memory:1; |
529 unsigned filter_need_temporary:1; | 529 unsigned filter_need_temporary:1; |
530 unsigned allow_ranges:1; | 530 unsigned allow_ranges:1; |
531 unsigned single_range:1; | |
531 | 532 |
532 #if (NGX_STAT_STUB) | 533 #if (NGX_STAT_STUB) |
533 unsigned stat_reading:1; | 534 unsigned stat_reading:1; |
534 unsigned stat_writing:1; | 535 unsigned stat_writing:1; |
535 #endif | 536 #endif |