This module defines APIs for representing and manipulating URIs.
The Uri
class supports parsing and creating
URI as defined by RFC 3986.
A new Uri
may be obtained using parse()
.
void printQuery(String uriAsString) { Uri uri = parse(uriAsString); print("Query part: ``uri.query``"); }
Packages | |
ceylon.uri | An API for constructing and parsing URIs. |
Dependencies | ||
ceylon.buffer | 1.3.3 |
An API for constructing and parsing URIs.
Values | |
percentEncoder | Source Codeshared percentEncoder percentEncoder Contains methods for percent-encoding. See http://tools.ietf.org/html/rfc3986#appendix-A for specifications. By: Stéphane Épardaud |
Functions | |
decodePercentEncoded | Source Codeshared String decodePercentEncoded(String str) Decodes a percent-encoded ASCII string. By: Stéphane Épardaud |
parse | Source Codeshared Uri parse(String uri) Parses a URI Throws
|
parseParameter | Source Codeshared Parameter parseParameter(String part) Parses a raw percent-encoded path parameter |
Classes | |
Authority | Source Codeshared Authority Represents a URI Authority part (user, password, host and port) |
Parameter | Source Codeshared Parameter Represents a URI path segment or query parameter |
Path | Source Codeshared Path Represents a URI Path part |
PathSegment | Source Codeshared PathSegment Represents a URI Path segment part |
Query | Source Codeshared Query Represents a URI Query part |
Uri | Source Codeshared Uri The URI class. See RFC 3986 for specifications. |
percentEncoder | Source Codeshared percentEncoder Contains methods for percent-encoding. See http://tools.ietf.org/html/rfc3986#appendix-A for specifications. |
Exceptions | |
InvalidUriException | Source Codeshared InvalidUriException Thrown when a URI is invalid |