Farseer v0.3.0 Farseer.Ets View Source

Responsible for normalizing interactions with ets.

Link to this section Summary

Functions

Gets all ets entries. Used for debug purposes.

The id of an entry is [method, path fragments]. For example, GET "/hello/world" will be {"GET", "", "hello", "world"}

Matches a given method and path.

Transforms an id into a templated id, e.g. {"GET", "", "hello", "1"} to {"GET", "", "hello", :"$1"}, so that it can match {"GET", "", "hello", "{{id}}"}

Link to this section Functions

Gets all ets entries. Used for debug purposes.

The id of an entry is [method, path fragments]. For example, GET "/hello/world" will be {"GET", "", "hello", "world"}

Link to this function

insert(method, path, path_rules, method_rules)

View Source

Matches a given method and path.

Transforms an id into a templated id, e.g. {"GET", "", "hello", "1"} to {"GET", "", "hello", :"$1"}, so that it can match {"GET", "", "hello", "{{id}}"}