diff options
author | Jean-Sébastien Pédron <[email protected]> | 2016-12-29 15:48:06 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-01-24 11:36:58 +0100 |
commit | 2166733628bbab0eb77eeed58bdf204727c48ec6 (patch) | |
tree | cb94448fd394a162af90daf6885c9e3aaa64d53a /src/cowboy_handler.erl | |
parent | 3c198f7d90ee7b482ee00e66d12699dd645442e7 (diff) | |
download | cowboy-2166733628bbab0eb77eeed58bdf204727c48ec6.tar.gz cowboy-2166733628bbab0eb77eeed58bdf204727c48ec6.tar.bz2 cowboy-2166733628bbab0eb77eeed58bdf204727c48ec6.zip |
cowboy_static: Add support for files in EZ archives
If cowboy_static is initialized with `{priv_file, ...}` or `{priv_dir,
...}`, it is now able to read files from Erlang application .ez
archives.
When serving a file from an archive, the #file_info{} comes from the
archive, not the contained file, except for the size and type. The
erl_prim_loader module is used to read the latter's #file_info{} and the
actual file content (ie. sendfile(2) is not used in this case).
Diffstat (limited to 'src/cowboy_handler.erl')
0 files changed, 0 insertions, 0 deletions