View Source simple_bridge_util (simple_bridge v2.3.1)

Link to this section Summary

Link to this section Types

-type header() :: {header_key(), string()}.
-type header_key() :: string() | binary() | atom().
-type header_list() :: [header()].
-type unit_of_time() :: years | months | weeks | days | hours | minuites | seconds.

Link to this section Functions

Link to this function

default_static_expires_header()

View Source
-spec default_static_expires_header() -> header().
Link to this function

ensure_expires_header(HeaderList)

View Source
-spec ensure_expires_header(header_list()) -> header_list().
Link to this function

ensure_header(HeaderList, _)

View Source
-spec ensure_header(header_list(), {header_key(), term()}) -> header_list().
Link to this function

ensure_header(HeaderList, Header, Value)

View Source
-spec ensure_header(header_list(), header_key(), term()) -> header_list().
Link to this function

ensure_headers(HeaderList, HeadersToEnsure)

View Source
-spec ensure_headers(header_list(), header_list()) -> header_list().
-spec expires(unit_of_time(), integer()) -> string().
Link to this function

get_address_and_port(BackendApp)

View Source
Link to this function

get_anchor_module(BackendApp)

View Source
Link to this function

get_docroot_and_static_paths(BackendApp)

View Source
Link to this function

get_env(AppKeys, Default)

View Source
Link to this function

get_max_file_in_memory_size(Default)

View Source
Link to this function

get_max_file_size(Default)

View Source
Link to this function

get_max_post_size(Default)

View Source
Link to this function

get_maybe_set_env(Var, Value)

View Source
-spec get_maybe_set_env(Var :: atom(), Value :: any()) -> any().
Link to this function

get_scratch_dir(Default)

View Source
Link to this function

get_server_name(BackendApp)

View Source
Link to this function

get_static_paths(BackendApp)

View Source
Link to this function

get_websocket_keepalive_interval_timeout(BackendApp)

View Source
Link to this function

has_any_header(HeaderList, HeadersToCheck)

View Source
-spec has_any_header(header_list(), [header_key()]) -> boolean().
Link to this function

has_header(HeaderList, Header)

View Source
-spec has_header(header_list(), header_key()) -> boolean().
Link to this function

infer_host(URI, Host, XForwardedFor)

View Source
Link to this function

is_static_path(Backend, URI)

View Source
Link to this function

make_expires_from_seconds(Seconds)

View Source
-spec make_expires_from_seconds(integer()) -> string().
-spec maybe_to_binary(iolist() | atom() | binary()) -> binary() | undefined.
-spec maybe_to_list(any()) -> string() | undefined.
Link to this function

needs_expires_header(HeaderList)

View Source
-spec needs_expires_header(header_list()) -> boolean().
-spec to_binary(iolist() | atom() | binary()) -> binary().
-spec to_list(any()) -> string().