Builder
Helper class for building or manipulating URI references. Not safe for concurrent use.
An absolute hierarchical URI reference follows the pattern: <scheme>://<authority><absolute path>?<query>#<fragment>
Relative URI references (which are always hierarchical) follow one of two patterns: <relative or absolute path>?<query>#<fragment> or //<authority><absolute path>?<query>#<fragment>
An opaque URI follows this pattern: <scheme>:<opaque part>#<fragment>
Use Uri.buildUpon to obtain a builder representing an existing URI.
Functions
Appends the given segment to the path.
Encodes the given segment and appends it to the path.
Encodes the key and value and then appends the parameter to the query string.
Encodes and sets the authority.
Clears the the previously set query.
Sets the previously encoded authority.
Sets the previously encoded fragment.
Sets the previously encoded opaque scheme-specific-part.
Sets the previously encoded path.
Sets the previously encoded query.
Encodes and sets the fragment.
Encodes and sets the given opaque scheme-specific-part.
Sets the path. Leaves '/' characters intact but encodes others as necessary.
Encodes and sets the query.
Sets the scheme.