Method

Cog.Shell.set_request_handler

Declaration [src]

void
cog_shell_set_request_handler (
  CogShell* shell,
  const char* scheme,
  CogRequestHandler* handler
)

Description [src]

Installs a handler for a custom URI scheme.

Parameters

scheme const char*
 

Name of the custom URI scheme.

 Ownership is not transferred to the callee
 The string is a NUL terminated UTF-8 string
handler CogRequestHandler
 

Handler for the custom URI scheme.

 Ownership is not transferred to the callee