The configuration object provides a set of methods to perform a hard setup of the web services or change the framework behavior. All methods available must be invoked from inside duda_main().
Every time the HTTP stack prints out some text messages, these are sent by default to STDOUT. But if the service is running in background mode those messages will be lost. When invoking this method, it instruct Duda core to redirect all STDOUT messages to the service console file.
void bind_messages();Parameters None Return: This method do not return any value.
Instruct the web service to perform an HTTP redirection over the requested URIs who do not contain an ending slash.
void foce_redirect();Parameters None Return: This method do not return any value.
It overrides the default web service name inside the stack, this will affect the URI starter string to identify the access to the service. If the service name is 'abc' it usually is accessed by URI /abc, but using this method it will override, e.g: setting service_name('efg') will map now URI /efg.
void service_name(const char *name);Parameters None Return: This method do not return any value.
By default when starting a web service, the way to access it is through it shortname in the URL. Defining a web service as Root, means that it owns a Virtual Host, so all further incoming request arriving to the Virtual Host will be handled by the web service in question. On using this call, the service will be accessed through the root URI '/' (the short name prefix is not longer required).
void service_root();Parameters None Return: This method do not return any value.