Share via


uri::is_host_portable Method

A portable URI is one with a hostname that can be resolved globally (used from another machine).

bool is_host_portable() const;

Return Value

true if this URI can be resolved globally (used from another machine), false otherwise.

Remarks

The hostname "localhost" is a reserved name that is guaranteed to resolve to the local machine, and cannot be used for inter-machine communication. Likewise the hostnames "*" and "+" on Windows represent wildcards, and do not map to a resolvable address.

Requirements

Header: base_uri.h

Namespace: web::http

See Also

Reference

uri Class