package email_message

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Normalize specifies how to handle header values. It is used in two contexts:

1) Transport (Normalize.encode): Specify how to turn a string into a header value. `Whitespace will add the necessary for transport.

2) Processing (Normalize.decode): Specify how to turn a header value into a string. `Whitespace will remove all leading and trailing whitespace on each line in order to cleanly process the value.

type encode = [
  1. | `None
    (*

    Leave whitespace unchanged

    *)
  2. | `Whitespace
    (*

    Cleanup leading and trailing whitespace on each line

    *)
]
val sexp_of_encode : encode -> Sexplib0.Sexp.t
type decode = [
  1. | encode
  2. | `Whitespace_and_encoded_words
]
val sexp_of_decode : decode -> Sexplib0.Sexp.t
val default : [> `Whitespace ]
OCaml

Innovation. Community. Security.