Function email::utils::full_url

Function Documentation

std::string email::utils::full_url(const std::string &protocol, const std::string &host, const int port)

Build a full URL from the necessary information.

i.e. protocol://host:port/

Parameters:
  • protocol – the protocol as a string

  • host – the host name

  • port – the port, corresponding to the protocol

Returns:

the full URL