Hovering headers or headers.x-action shows type/docs
What is Rex?
Rex is a data format that extends JSON with high-level infix logic. Any valid JSON is already valid Rex, and you can add conditionals, assignment, loops, and comprehensions directly in source. Rex compiles to compact rexc bytecode that you can store, serialize, and diff like any other data.
actions = {
create-user: "users/create"
delete-user: "users/delete"
update-profile: "users/update-profile"
}
when handler = actions.(headers.x-action) do
headers.x-handler = handler
end