class type cgi_activation =object..end
cgi_activation also defines a conversion function that allows
to connect old scripts to the new infrastructure. Renamed
simply cgi as this is the main cgi-like abstraction.method environment : Netcgi1_compat.Netcgi_env.cgi_environmentmethod request_method : request_methodmethod initial_arguments : (string * cgi_argument) listmethod initial_argument : string -> cgi_argumentmethod initial_argument_value : ?default:string -> string -> stringmethod initial_multiple_argument : string -> cgi_argument listmethod arguments : (string * cgi_argument) listNetcgi.Argument has a few
helper functions to help manipulating lists of immutable
arguments. Moreover, mutable arguments send the wrong message
to the user (imagine one wants to keep a cache of args ->
response) and unnecessarily complicate the interface.
It has type argument list as the name is redundant and
this is better suited for the Netcgi.query_string_spec
optional arguments.
method argument : string -> cgi_argumentmethod argument_value : ?default:string -> string -> stringmethod multiple_argument : string -> cgi_argument listmethod set_arguments : ?fin:bool -> cgi_argument list -> unitmethod update_argument : ?fin:bool -> cgi_argument -> unitmethod update_multiple_argument : ?fin:bool -> cgi_argument list -> unitmethod delete_argument : ?fin:bool -> string -> unitmethod url : ?protocol:Netcgi1_compat.Netcgi_env.protocol ->
?with_authority:other_url_spec ->
?with_script_name:other_url_spec ->
?with_path_info:other_url_spec ->
?with_query_string:query_string_spec ->
unit -> stringmethod output : Netchannels.trans_out_obj_channelout_channel for coherence with the
standard library --- this is also to avoid
cgi#output#output ... which looks odd.method set_header : ?status:status ->
?content_type:string ->
?cache:cache_control ->
?filename:string ->
?language:string ->
?script_type:string ->
?style_type:string ->
?set_cookie:cgi_cookie list ->
?fields:(string * string list) list -> unit -> unit?content_length for user convenience and deprecated
?set_cookie in favor of ?set_cookies for coherence
e.g. with ?fields.method set_redirection_header : string -> unitmethod finalize : unit -> unit