Module openflax.dispatch

Dispatching logic for OpenFlax.

Description

Dispatching logic for OpenFlax.

Function Index

resolve_request/4Returns the response() from the first entry in the given dispatch rules which pattern-matches the given basic resource and arguments of a URI and which is set to allow the given IP address of the client.

Function Details

resolve_request/4

resolve_request(Tail::[dispatch()], Resource::string(), Args::string(), RemoteAddress::ip()) -> {response(), conf()}

Returns the response() from the first entry in the given dispatch rules which pattern-matches the given basic resource and arguments of a URI and which is set to allow the given IP address of the client. Additional configuation settings may be specified in a list in the dispatch (they will override existing ones.)