Compartilhar via


uri::port Method

Get the port component of the URI. Returns -1 if no port is specified.

int port() const;

Return Value

The URI port as an integer.

Requirements

Header: base_uri.h

Namespace: web::http

See Also

Reference

uri Class