Module Netcgi


module Netcgi: sig .. end
Classical CGI implementation

For in introduction, see the guide "Introduction into OcamlNet".



Classical CGI implementation

For in introduction, see the guide "Introduction into OcamlNet".

class simple_argument : ?ro:bool -> string -> string -> Netcgi_types.cgi_argument
new simple_argument name value: Creates an unstructured CGI argument called name with contents value.
class mime_argument : ?work_around_backslash_bug:bool -> string -> Netmime.mime_message -> Netcgi_types.cgi_argument
new mime_argument name msg: Creates a MIME-structured CGI argument called name with contents msg.
type argument_processing = [ `Automatic | `File | `Memory ] 
How to process CGI arguments:
type operating_type = [ `Direct of string
| `Transactional of
Netcgi_env.cgi_config ->
Netchannels.out_obj_channel -> Netchannels.trans_out_obj_channel ]
The operating type determines how generated data are buffered. Two important examples for `Transactional:
class std_activation : ?env:Netcgi_env.cgi_environment -> ?processing:string -> Netmime.mime_header -> argument_processing -> ?operating_type:operating_type -> unit -> Netcgi_types.cgi_activation
This class is an implementation of classical CGI.
val buffered_transactional_optype : operating_type
A predefined transactional operating_type using a Buffer.t to store the not yet completed transaction.
val tempfile_transactional_optype : operating_type
A predefined transactional operating_type using a temporary file to store the not yet completed transaction
class custom_activation : ?env:Netcgi_env.cgi_environment -> ?args:Netcgi_types.cgi_argument list -> ?meth:Netcgi_types.request_method -> ?operating_type:operating_type -> unit -> Netcgi_types.cgi_activation
This class can be used to implement a non-standard connector that has the same output format as CGI.