diff options
author | Badlop <badlop@process-one.net> | 2022-05-12 17:25:11 +0200 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2022-05-17 10:42:02 +0200 |
commit | 4f8e6fe844804fba59904702d0ef2688958e8852 (patch) | |
tree | 8d3f06b41b76c688ddcfce7698787302d5d4e34f /src/mod_http_fileserver.erl | |
parent | Define license for hex.pm using SPDX identifier (diff) |
Fix errors and warnings for "rebar3 edoc"
Diffstat (limited to 'src/mod_http_fileserver.erl')
-rw-r--r-- | src/mod_http_fileserver.erl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mod_http_fileserver.erl b/src/mod_http_fileserver.erl index d20d626bd..9177552a3 100644 --- a/src/mod_http_fileserver.erl +++ b/src/mod_http_fileserver.erl @@ -151,7 +151,9 @@ initialize(Host, Opts) -> content_types = ContentTypes, user_access = UserAccess}. -%% @spec (AdminCTs::[CT], Default::[CT]) -> [CT] +-spec build_list_content_types(AdminCTs::[{binary(), binary()|undefined}], + Default::[{binary(), binary()|undefined}]) -> + [{string(), string()|undefined}]. %% where CT = {Extension::string(), Value} %% Value = string() | undefined %% @doc Return a unified list without duplicates. @@ -265,7 +267,8 @@ code_change(_OldVsn, State, _Extra) -> %% request_handlers callbacks %%==================================================================== -%% @spec (LocalPath, Request) -> {HTTPCode::integer(), [Header], Page::string()} +-spec process(LocalPath::[binary()], #request{}) -> + {HTTPCode::integer(), [{binary(), binary()}], Page::string()}. %% @doc Handle an HTTP request. %% LocalPath is the part of the requested URL path that is "local to the module". %% Returns the page to be sent back to the client and/or HTTP status code. |