Module mod_http_fileserver [erl svg]

Behaviours: gen_mod, gen_server.

Function Index

add_to_log/3*
add_to_log/4*
build_list_content_types/2*Return a unified list without duplicates.
check_docroot_defined/2*
check_docroot_exists/1*
check_docroot_is_dir/2*
check_docroot_is_readable/2*
close_log/1*
code_change/3
content_type/3*
find_header/3*
get_proc_name/1*
get_proc_name_existing/1*
handle_call/3
handle_cast/2
handle_info/2
init/1
initialize/2*
ip_to_string/1*
join/2*
last_modified/1*
open_log/1*
process/2Handle an HTTP request.
reopen_log/0
reopen_log/1
reopen_log/2*
serve/6*
serve_file/5*
serve_index/5*
start/2
start_link/2
stop/1
terminate/2
try_open_log/2*

Function Details

add_to_log/3 *

add_to_log(FileSize, Code, Request) -> any()

add_to_log/4 *

add_to_log(File, FileSize, Code, Request) -> any()

build_list_content_types/2 *

build_list_content_types(AdminCTs::[CT], Default::[CT]) -> [CT]

Return a unified list without duplicates. Elements of AdminCTs have more priority. If a CT is declared as 'undefined', then it is not included in the result.

check_docroot_defined/2 *

check_docroot_defined(DocRoot, Host) -> any()

check_docroot_exists/1 *

check_docroot_exists(DocRoot) -> any()

check_docroot_is_dir/2 *

check_docroot_is_dir(DRInfo, DocRoot) -> any()

check_docroot_is_readable/2 *

check_docroot_is_readable(DRInfo, DocRoot) -> any()

close_log/1 *

close_log(FD) -> any()

code_change/3

code_change(OldVsn, State, Extra) -> any()

content_type/3 *

content_type(Filename, DefaultContentType, ContentTypes) -> any()

find_header/3 *

find_header(Header, Headers, Default) -> any()

get_proc_name/1 *

get_proc_name(Host) -> any()

get_proc_name_existing/1 *

get_proc_name_existing(Host) -> any()

handle_call/3

handle_call(Request, From, State) -> any()

handle_cast/2

handle_cast(Msg, State) -> any()

handle_info/2

handle_info(Info, State) -> any()

init/1

init(X1) -> any()

initialize/2 *

initialize(Host, Opts) -> any()

ip_to_string/1 *

ip_to_string(Address) -> any()

join/2 *

join(T, Separator) -> any()

last_modified/1 *

last_modified(FileInfo) -> any()

open_log/1 *

open_log(FN) -> any()

process/2

process(LocalPath, Request) -> {HTTPCode::integer(), [Header], Page::string()}

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.

reopen_log/0

reopen_log() -> any()

reopen_log/1

reopen_log(Host) -> any()

reopen_log/2 *

reopen_log(FN, FD) -> any()

serve/6 *

serve(LocalPath, DocRoot, DirectoryIndices, CustomHeaders, DefaultContentType, ContentTypes) -> any()

serve_file/5 *

serve_file(FileInfo, FileName, CustomHeaders, DefaultContentType, ContentTypes) -> any()

serve_index/5 *

serve_index(FileName, T, CH, DefaultContentType, ContentTypes) -> any()

start/2

start(Host, Opts) -> any()

To do

start_link/2

start_link(Host, Opts) -> any()

stop/1

stop(Host) -> any()

terminate/2

terminate(Reason, State) -> any()

try_open_log/2 *

try_open_log(FN, Host) -> any()


Generated by EDoc, May 23 2012, 07:15:11.