package gapi-ocaml

  1. Overview
  2. Docs
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-type-mime_header/index.html

Class type Netmime.mime_headerSource

A MIME header with both read and write method. It is still possible, * however, to set the read-only flag to make this kind of header * immutable, too.

Supports all these read access method, too

method ro : bool

whether the header is read-only or not

method set_fields : (string * string) list -> unit
method update_field : string -> string -> unit
method update_multiple_field : string -> string list -> unit
method delete_field : string -> unit

These methods modify the fields of the header. If the header is * read-only, the exception Immutable will be raised. * * set_fields replaces the current fields with a new list of * (name,value) pairs. update_field name value replaces all fields * of the passed name with the single setting (name,value), or * adds this setting to the list. update_multiple_field name values * replaces all fields of the passed name with the list of values, * or adds this list. Finally, delete_field name deletes all * fields of the passed name. Nothing happens if there is no such * field. * * Both update_field and update_multiple_field first replace * existing values by the new ones without changing the order * of the fields in the header. Additional values are inserted * after the last existing value, or at the end of the header.

OCaml

Innovation. Community. Security.