Method
CogHostRoutesHandleradd
Declaration [src]
gboolean
cog_host_routes_handler_add (
CogHostRoutesHandler* self,
const char* host,
CogRequestHandler* handler
)
Description [src]
Adds a route to the handler.
Configures a route which matches host in URI, and dispatches
requests to a given handler.
Parameters
host-
Type:
const char*URI host to match.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. handler-
Type:
CogRequestHandlerA request handler for the matched host.
The data is owned by the caller of the method.