mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
![]() 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).
(cherry picked from commit
|
||
---|---|---|
.. | ||
http_body_qs.erl | ||
http_chunked.erl | ||
http_echo_body.erl | ||
http_errors.erl | ||
http_handler.erl | ||
http_init_shutdown.erl | ||
http_loop_stream_recv.erl | ||
http_multipart.erl | ||
http_multipart_stream.erl | ||
http_req_attr.erl | ||
http_set_resp.erl | ||
http_stream_body.erl | ||
http_streamed.erl | ||
rest_empty_resource.erl | ||
rest_expires.erl | ||
rest_expires_binary.erl | ||
rest_forbidden_resource.erl | ||
rest_missing_callbacks.erl | ||
rest_nodelete_resource.erl | ||
rest_param_all.erl | ||
rest_patch_resource.erl | ||
rest_post_charset_resource.erl | ||
rest_postonly_resource.erl | ||
rest_resource_etags.erl | ||
rest_simple_resource.erl | ||
static_files_app.ez |