package gapi-ocaml
A simple OCaml client for Google Services
Install
Dune Dependency
Authors
Maintainers
Sources
v0.4.6.tar.gz
sha256=b84b680528a5e050014103a8e7a60a5d43efd5fefc3f838310bd46769775ab48
md5=8ee26acf1f6c6f5e24c7b57fa070a0a2
doc/gapi-ocaml.netstring-local/Netmime/class-memory_mime_body/index.html
Class Netmime.memory_mime_body
Source
An implementation of mime_body
where the value is stored * in-memory. * * The argument is the initial (decoded) value of the body. * The method store
returns `Memory
. * * Example: To create a body from a string, call *
new memory_mime_body "The value as string"
inherit mime_body_ro
Supports 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_channel
Opens 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();
*
*
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>