Closed DerekBum closed 2 months ago
Let's also add a public API call for this functionality in the scope of the task, so that there is no need to access internal structures directly:
Updated the PR according to the comments.
CI is finally green, all comments are fixed.
Updated the PR according to comments.
Updated everything according to comments.
Updated everything according to comments.
This patch adds
roles.http_server
. This role allows to configurate one or more HTTP servers. Those servers could be reused by several other roles.Servers could be accessed by their names (from the config).
get_server(name)
method returns a server by its name. Ifnil
is passed, default server is returned. The server is default, if it hasDEFAULT_SERVER_NAME
("default"
) as a name.This patch also adds a
httpd:delete(name)
method to delete named routes.Closes #196