diff --git a/doc/README.md b/doc/README.md index 1a00896..05af46e 100644 --- a/doc/README.md +++ b/doc/README.md @@ -159,6 +159,7 @@ about benchmarking HTTP servers. + diff --git a/doc/edoc-info b/doc/edoc-info index 7dfc7ca..98f05d9 100644 --- a/doc/edoc-info +++ b/doc/edoc-info @@ -1,5 +1,5 @@ %% encoding: UTF-8 {application,elli}. -{modules,[elli,elli_example_callback,elli_example_callback_handover, +{modules,[adder,elli,elli_example_callback,elli_example_callback_handover, elli_handler,elli_http,elli_middleware,elli_middleware_compress, elli_request,elli_tcp,elli_test,elli_util]}. diff --git a/doc/elli_handler.md b/doc/elli_handler.md index 2662af9..5ba6bc5 100644 --- a/doc/elli_handler.md +++ b/doc/elli_handler.md @@ -53,6 +53,6 @@ See [`elli_example_callback:handle_event/3`](elli_example_callback.md#handle_eve

-result() = {elli:response_code() | ok, elli:body()} | {elli:response_code() | ok, elli:headers(), elli:body()} | ignore
+result() = {elli:response_code() | ok, elli:headers(), {file, file:name_all()} | {file, file:name_all(), elli_util:range()}} | {elli:response_code() | ok, elli:headers(), elli:body()} | {elli:response_code() | ok, elli:body()} | {chunk, elli:headers()} | {chunk, elli:headers(), elli:body()} | ignore
 
diff --git a/doc/elli_test.md b/doc/elli_test.md index aa893f7..12f4df9 100644 --- a/doc/elli_test.md +++ b/doc/elli_test.md @@ -32,7 +32,7 @@ The unit tests below test `elli_example_callback`. ### call/5 ###

-call(Method, Path, Headers, Body, Opts) -> elli:req()
+call(Method, Path, Headers, Body, Opts) -> elli_handler:result()
 
diff --git a/doc/elli_util.md b/doc/elli_util.md index e4ce653..de10432 100644 --- a/doc/elli_util.md +++ b/doc/elli_util.md @@ -49,10 +49,10 @@ Encode Range to a Content-Range value. ### file_size/1 ###

-file_size(Filename::file:name()) -> non_neg_integer() | {error, Reason}
+file_size(Filename) -> Size | {error, Reason}
 
- + Get the size in bytes of the file. diff --git a/src/elli.app.src b/src/elli.app.src index 17d3c45..4786b15 100644 --- a/src/elli.app.src +++ b/src/elli.app.src @@ -1,7 +1,7 @@ {application, elli, [ {description, "Erlang web server for HTTP APIs"}, - {vsn, "2.0.0"}, + {vsn, "2.0.1"}, {modules, [ elli, elli_example_callback,
adder
elli
elli_example_callback
elli_example_callback_handover