mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Rename cowboy_http_static to cowboy_static
This commit is contained in:
parent
6d84afd16d
commit
f39c001c03
3 changed files with 18 additions and 18 deletions
|
@ -227,21 +227,21 @@ init_dispatch(Config) ->
|
|||
[{body, <<"A flameless dance does not equal a cycle">>}]},
|
||||
{[<<"stream_body">>, <<"set_resp">>], http_handler_stream_body,
|
||||
[{reply, set_resp}, {body, <<"stream_body_set_resp">>}]},
|
||||
{[<<"static">>, '...'], cowboy_http_static,
|
||||
{[<<"static">>, '...'], cowboy_static,
|
||||
[{directory, ?config(static_dir, Config)},
|
||||
{mimetypes, [{<<".css">>, [<<"text/css">>]}]}]},
|
||||
{[<<"static_mimetypes_function">>, '...'], cowboy_http_static,
|
||||
{[<<"static_mimetypes_function">>, '...'], cowboy_static,
|
||||
[{directory, ?config(static_dir, Config)},
|
||||
{mimetypes, {fun(Path, data) when is_binary(Path) ->
|
||||
[<<"text/html">>] end, data}}]},
|
||||
{[<<"handler_errors">>], http_handler_errors, []},
|
||||
{[<<"static_attribute_etag">>, '...'], cowboy_http_static,
|
||||
{[<<"static_attribute_etag">>, '...'], cowboy_static,
|
||||
[{directory, ?config(static_dir, Config)},
|
||||
{etag, {attributes, [filepath, filesize, inode, mtime]}}]},
|
||||
{[<<"static_function_etag">>, '...'], cowboy_http_static,
|
||||
{[<<"static_function_etag">>, '...'], cowboy_static,
|
||||
[{directory, ?config(static_dir, Config)},
|
||||
{etag, {fun static_function_etag/2, etag_data}}]},
|
||||
{[<<"static_specify_file">>, '...'], cowboy_http_static,
|
||||
{[<<"static_specify_file">>, '...'], cowboy_static,
|
||||
[{directory, ?config(static_dir, Config)},
|
||||
{mimetypes, [{<<".css">>, [<<"text/css">>]}]},
|
||||
{file, <<"test_file.css">>}]},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue