Module conf_file

.

Copyright © (C) 2020, Big Data Technology

Authors: Evgeny Khramtsov (ekhramtsov@bdt.group).

Description

Data Types

error_reason()

error_reason() = {file, file_error_reason()} | {http, conf_http:error_reason()}

file_error_reason()

file_error_reason() = empty_path | invalid_path | unsupported_uri | file:posix()

mime_type()

mime_type() = binary()

ref()

ref() = binary() | uri_string:uri_map()

Function Index

format_error/1
format_ref/1
path_to_ref/1
read/2

Function Details

format_error/1

format_error(X1::error_reason()) -> string()

format_ref/1

format_ref(URI::ref()) -> binary()

path_to_ref/1

path_to_ref(Path::binary()) -> {ok, ref()} | {error, error_reason()}

read/2

read(URI::ref(), Mimes::[mime_type(), ...]) -> {ok, term()} | {error, error_reason()}


Generated by EDoc