This pull request fixes an issue with server URL validation in the API. Previously, the code was using the Url type for server URLs, but it has been updated to use a new ServerUrl type instead. The ServerUrl type ensures that the URL is valid and includes a valid authority. Additionally, the code now ignores invalid routes in the Router::new function. These changes improve the overall reliability and robustness of the API.
This pull request fixes an issue with server URL validation in the API. Previously, the code was using the
Url
type for server URLs, but it has been updated to use a newServerUrl
type instead. TheServerUrl
type ensures that the URL is valid and includes a valid authority. Additionally, the code now ignores invalid routes in theRouter::new
function. These changes improve the overall reliability and robustness of the API.