class type cgi_argument =object
..end
method name : string
method value : string
Argument.Oversized
if the argument was discarded.Failure
if the object has been finalized.method open_value_rd : unit -> Netchannels.in_obj_channel
#storage
and #representation
.Argument.Oversized
if the argument was discarded.Failure
if the object has been finalized.method store : [ `File of string | `Memory ]
`File
being the filename).method content_type : unit -> string * (string * Netmime_string.s_param) list
(hdr, params)
. When the header is missing, the
result is ("text/plain", [])
. Below you will 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.
(This is not to be confused with the possible local file
holding the data.)method representation : [ `MIME of Netmime.mime_message | `Simple of Netmime.mime_body ]
`Simple
the value of the CGI argument is an unstructured
string value.`MIME
The argument has a MIME header in addition to the
value. The MIME message is read-only.method finalize : unit -> unit
finalize
to delete
such files. The method does not have any effect when store =
`Memory
. The method never raises any exceptions. If the
file no longer exists (e.g. because it was moved away) or if
there are any problems deleting the file, the error will be
ignored.
The finalize
method is not registered in the garbage
collector. You can do that, but it is usually better to call
this method manually.