Skip to main content

server_origin

Function server_origin 

Source
pub fn server_origin(server: &str) -> String
Expand description

The origin a server is reached at, from either spelling a person uses: a URL as given, and https:// before a hostname. Every server this project runs terminates TLS, on a developer’s machine as much as anywhere else, so there is one scheme. --server and PDS read the same way everywhere.

A hostname with no port means 443, unless didbot_identity::did::RESOLVE_PORTS says that zone answers somewhere else — which is how several local servers run at once on one machine.