View Source Recase.HeaderCase (recase v0.8.1)

Module to convert strings to Header-Case.

This module should not be used directly.

Examples

iex> Recase.to_header "foo_barBaz-λambdaΛambda-привет-Мир"
"Foo-Bar-Baz-Λambda-Λambda-Привет-Мир"

Header case is the case suggested in [section 3.4.7 of RFC 822] (https://tools.ietf.org/html/rfc822#section-3.4.7) to be used in the message-creation process.

Summary

Functions

@spec convert(String.t()) :: String.t()