Function set_server_url
pub fn set_server_url(url: &'static str)Expand description
Set the root server URL that all server function paths are relative to for the client.
If this is not set, it defaults to the origin.
§Panics
Panics if the server URL has already been set. Setting it twice is almost
always a bug: requests would otherwise be silently sent to a different URL
than intended. If you need to handle the already-set case gracefully, use
try_set_server_url instead.