pub fn uri(&self) -> &Uri {
        match &self.uri {
            EndpointType::Uri(uri) => uri,
            EndpointType::Uds(_) => &self.fallback_uri,
        }
    }
Get the endpoint uri.

```
# use tonic::transport::Endpoint;
# use http::Uri;
let endpoint = Endpoint::from_static("https://example.com");

assert_eq!(endpoint.uri(), &Uri::from_static("https://example.com"));
```
tonic/src/transport/channel/endpoint.rs