MIMEParams

external class MIMEParams(source)

The MIMEParams API provides read and write access to the parameters of a MIMEType.

Since

v19.1.0, v18.13.0

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun delete(name: String)

Remove all name-value pairs whose name is name.

Link copied to clipboard

Returns an iterator over each of the name-value pairs in the parameters. Each item of the iterator is a JavaScript Array. The first item of the array is the name, the second item of the array is the value.

Link copied to clipboard
fun get(name: String): String?

Returns the value of the first name-value pair whose name is name. If there are no such pairs, null is returned.

Link copied to clipboard
fun has(name: String): Boolean

Returns true if there is at least one name-value pair whose name is name.

Link copied to clipboard

Returns an iterator over the names of each name-value pair.

Link copied to clipboard
fun set(name: String, value: String)

Sets the value in the MIMEParams object associated with name to value. If there are any pre-existing name-value pairs whose names are name, set the first such pair's value to value.

Link copied to clipboard

Returns an iterator over the values of each name-value pair.