Share via


uri_builder::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: uri_builder.h

Namespace: web::http

See Also

Reference

uri_builder Class