Formatter typedef

Formatter = String Function(String value)

Signature for a post–percent-encoding formatter that normalizes a single URI component string.

The value must already be percent-encoded (i.e. spaces are %20, reserved characters are escaped as needed). A formatter may then apply output normalization such as converting %20 to + for the classic application/x-www-form-urlencoded style.

Return the formatted string to be emitted in the final query.

Implementation

typedef Formatter = String Function(String value);