Module Builder.Fragment

Construct fragments

type t

The fragment builder type

val raw : string -> t

raw s creates a URL fragment from string s without percent-encoding it.

This is useful for including readable unicode graphemes in the URL fragment.

val string : string -> t

string s creates a URL path segment from string s.

Special characters like ?, / or non-ASCII characters will be automatically escaped using percent-encoding.