ocsigenserver
A full-featured and extensible Web server
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
package ocsigenserver
-
ocsigenserver.cookies
-
ocsigenserver.ext.accesscontrol
-
ocsigenserver.ext.authbasic
-
ocsigenserver.ext.cors
-
ocsigenserver.ext.deflatemod
-
ocsigenserver.ext.extendconfiguration
-
ocsigenserver.ext.outputfilter
-
ocsigenserver.ext.redirectmod
-
ocsigenserver.ext.revproxy
-
ocsigenserver.ext.rewritemod
-
ocsigenserver.ext.staticmod
-
ocsigenserver.ext.userconf
-
ocsigenserver.http
-
ocsigenserver.polytables
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Library ocsigenserver
Module
Ocsigen_command
val register_command_function :
?prefix:string ->
( string -> string list -> unit Lwt.t ) ->
unit
Use a prefix for all your commands when you want to create extension-specific commands. For example if the prefix is "myextension" and the commande "blah", the actual command to be written by the user is "myextension:blah". Give as parameter the function that will parse the command and do an action. Its first parameter is the full command as a string. The second one is the command without prefix, split by word. It must raise ocsigen_extensions.Unknown_command
if it does not recognize the command.
ON THIS PAGE
No table of contents