package gapi-ocaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=5cc769af46198deb88707ccb50398088316e60f51db8c36389e6a2aae4c2ad30
md5=d918a22fde1b1d49a9783fb2f932d059
doc/gapi-ocaml.netstring-local/Netmime/class-type-mime_body/index.html
Class type Netmime.mime_bodySource
A MIME body with both read and write method. It is still possible, * however, to set the read-only flag to make this kind of body * immutable, too. * * The value of the body can be set either by a string, or by writing * to an object channel. Both ways are possible independently of where * the value is stored, in-memory, or as external file.
inherit mime_body_roSupports all these read access method, too
Sets the value. If the value is immutable, the exception * Immutable will be raised. * * The passed string must be in decoded form. When the body is * stored in an external file, the file is overwritten.
method open_value_wr : unit -> Netchannels.out_obj_channelOpens the value for writing. The current value is overwritten. * If the value is immutable, the exception Immutable will be raised. * * For example, to copy the file f into the value: *
* let ch = body # open_value_wr() in
* let f_ch = new Netchannels.input_file f in
* ch # output_channel f_ch;
* f_ch # close_in();
* ch # close_out();
* *