build

fun build(): URI

Constructs the URI from the configured URL parts.

Return

the built URI.

Throws

if the host is not set or the port is not within the valid range.