Function

CogHostRoutesHandlernew

Declaration [src]

CogRequestHandler*
cog_host_routes_handler_new (
  CogRequestHandler* fallback_handler
)

Description [src]

Create a new handler.

Parameters

fallback_handler CogRequestHandler
 

A CogRequestHandler to use as fallback.

 The argument can be NULL.
 The data is owned by the caller of the function.

Return value

Returns: CogRequestHandler
 

A handler with no route entries configured.

 The caller of the function takes ownership of the data, and is responsible for freeing it.