Skip to main content

write_boundary

Function write_boundary 

Source
pub fn write_boundary(output: &mut impl Writer, separator: &str)
Expand description

Writes a random MIME boundary without allocating.

The boundary is 128 random bits split into two hexadecimal fields joined by separator, which should be a non-empty string. Boundaries never contain characters that are forbidden in a MIME boundary, nor any whitespace.