Module openflax.serve

OpenFlax HTTP serving functions.

Description

OpenFlax HTTP serving functions.

Function Index

handle_response/4Selects an appropriate action from the given response() and acts on it (sends it to the user agent, etc.).
serve/3Serves a resource to the client.

Function Details

handle_response/4

handle_response(Response::response(), Conf::conf(), Http::http(), MasterDict::master_dict()) -> {ok, conf()}

Selects an appropriate action from the given response() and acts on it (sends it to the user agent, etc.)

serve/3

serve(Http::http(), Conf::conf(), MasterDict::master_dict()) -> conf()

Serves a resource to the client. Determines which resource the client wanted, then sends it to the user agent. Before and after this determination, notifies a watching process (if any).