class type cgi_argument =The interface of CGI argument objectsobject
..end
method name : string
method value : string
method open_value_rd : unit -> Netchannels.in_obj_channel
store
and representation
.method ro : bool
method store : store
method content_type : string
"text/plain"
when the
header is missing. Parameters of the content type have been stripped
off (e.g. charset
).method content_type_params : (string * Mimestring.s_param) list
[]
when
the header is missing. Below you find access method for frequently
used parameters.method charset : string
charset
parameter of the content type of the header, or ""
when there is no such parameter, or no header.method filename : string option
filename
parameter found in the header of file uploads.
When present, Some name
is returned, and None
otherwise.method representation : representation
method finalize : unit -> unit
finalize
to delete such files. The
method does not have any effect when store = `Memory
.
The method does never raise any exceptions. If the file does no longer
exist (e.g. because it is moved away), or if there are any problems
deleting the file, the error will be suppressed.
The finalize
method is not registered in the garbage collector.
You can do that, but it is usually better to call this method manually.
cgi_activation
supports this.method set_value : string -> unit
representation
supports mutable values, the value is set
to the passed string. The other properties of the argument are not
modified.
If the representation
does not support this feature, the exception
Netmime.Immutable
will be raised.
method open_value_wr : unit -> Netchannels.out_obj_channel
Netmime.Immutable
will
be raised.