uri_builder Class
Builder for constructing URIs incrementally.
Warning
This topic contains information for the C++ REST SDK 1.0 (codename "Casablanca"). If you are using a later version from the Codeplex Casablanca web page, then use the local documentation at http://casablanca.codeplex.com/documentation.
class uri_builder;
Members
Public Constructors
Name |
Description |
---|---|
Overloaded. Creates a builder with an initially empty URI. |
Public Methods
Name |
Description |
---|---|
Appends an relative uri (Path, Query and fragment) at the end of the current uri. |
|
Appends another path to the path of this uri_builder. |
|
Overloaded. Appends another query to the query of this uri_builder. |
|
Clears all components of the underlying URI in this uri_builder. |
|
Get the fragment component of the URI as an encoded string. |
|
Get the host component of the URI as an encoded string. |
|
Validate the generated URI from all existing components of this uri_builder. |
|
Get the path component of the URI as an encoded string. |
|
Get the port component of the URI. Returns -1 if no port is specified. |
|
Get the query component of the URI as an encoded string. |
|
Get the scheme component of the URI as an encoded string. |
|
Set the fragment component of the URI. |
|
Set the host component of the URI. |
|
Set the path component of the URI. |
|
Set the port component of the URI. |
|
Set the query component of the URI. |
|
Set the scheme of the URI. |
|
Set the user info component of the URI. |
|
Combine and validate the URI components into a encoded string. An exception will be thrown if the URI is invalid. |
|
Combine and validate the URI components into a URI class instance. An exception will be thrown if the URI is invalid. |
|
Get the user information component of the URI as an encoded string. |
Requirements
Header: base_uri.h, uri_builder.h
Namespace: web::http