Sets the port for the URL. The given port number must be provided as a string
and the decimal number must be between 1 and 65535. Anything else will return an error.
You can also pass Nil to unset the port in the URL handle.
The optional flags parameter can be a combination of flags as described in
the documentation of the hurl.URL() function. See hurl.URL for details.