xtd 0.2.0
Loading...
Searching...
No Matches

◆ uri_scheme_http

const xtd::ustring xtd::uri::uri_scheme_http
inlinestatic

Specifies that the URI is accessed through the Hypertext Transfer Protocol (HTTP). This field is read-only.

Examples
The following example creates a xtd::uri instance and determines whether the scheme is xtd::uri::uri_scheme_http.
uri address1("http://www.contoso.com/index.htm#search");
console::write_line("address 1 {0} a valid scheme name",
uri::check_scheme_name(address1.scheme()) ? " has" : " does not have");
if (address1.scheme == uri::uri_scheme_http)
console::write_line("uri is HTTP type");
console::write_line(address1.host_name_type());
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
static bool check_scheme_name(const xtd::ustring &scheme)
Determines whether the specified scheme name is valid.
static const xtd::ustring uri_scheme_http
Specifies that the URI is accessed through the Hypertext Transfer Protocol (HTTP)....
Definition uri.h:165
Provides an object representation of a uniform resource identifier (URI) and easy access to the parts...
Definition uri.h:103