module Netmime_header:sig
..end
These functions will raise Not_found
if the fields are not
present.
Many HTTP-specific header functions can be found in Nethttp.Header
.
val get_content_length : #Netmime.mime_header_ro -> int
val get_content_type : #Netmime.mime_header_ro -> string * (string * Netmime_string.s_param) list
"text/plain; charset=utf-8"
this method returns
("text/plain", ["charset", p])
where p
is an opaque value
with Netmime_string.param_value p = "utf-8"
.val get_content_disposition : #Netmime.mime_header_ro -> string * (string * Netmime_string.s_param) list
"attachment; filename=xy.dat"
this method returns
("attachment", ["filename", p])
where p
is an opaque value
with Netmime_string.param_value p = "xy.dat"
.val get_content_transfer_encoding : #Netmime.mime_header_ro -> string