| /tonic/tonic/src/transport/channel/service/ |
| H A D | add_origin.rs | 2 use http::uri::Authority; 3 use http::uri::Scheme; 17 let http::uri::Parts { in new() 53 head.uri = { in call() 55 let mut uri: http::uri::Parts = head.uri.into(); in call() localVariable 57 uri.scheme = self.scheme.clone(); in call() 58 uri.authority = self.authority.clone(); in call() 60 http::Uri::from_parts(uri).expect("valid uri") in call()
|
| H A D | connector.rs | 50 fn call(&mut self, uri: Uri) -> Self::Future { in call() 55 let is_https = uri.scheme_str() == Some("https"); in call() 56 let connect = self.inner.call(uri); in call()
|
| H A D | connection.rs | 60 let origin = endpoint.origin.as_ref().unwrap_or(&endpoint.uri).clone(); in new() 73 let conn = Reconnect::new(make_service, endpoint.uri.clone(), is_lazy); in new()
|
| /tonic/tonic/src/transport/channel/ |
| H A D | endpoint.rs | 9 use http::{uri::Uri, HeaderValue}; 20 pub(crate) uri: Uri, field 54 if me.uri.scheme() == Some(&http::uri::Scheme::HTTPS) { in new() 72 let uri = Uri::from_static(s); in from_static() localVariable 73 Self::from(uri) in from_static() 84 Ok(Self::from(uri)) in from_shared() 253 .into_tls_connector(&self.uri) in tls_config() 420 pub fn uri(&self) -> &Uri { in uri() method 421 &self.uri in uri() 445 fn from(uri: Uri) -> Self { in from() [all …]
|
| H A D | mod.rs | 17 uri::{InvalidUri, Uri}, 79 pub fn builder(uri: Uri) -> Endpoint { in builder() 80 Endpoint::from(uri) in builder() 90 let uri = Uri::from_static(s); in from_static() localVariable 91 Self::builder(uri) in from_static() 101 let uri = Uri::from_maybe_shared(s.into())?; in from_shared() localVariable 102 Ok(Self::builder(uri)) in from_shared() 112 tx.try_send(Change::Insert(endpoint.uri.clone(), endpoint)) in balance_list()
|
| H A D | tls.rs | 124 pub(crate) fn into_tls_connector(self, uri: &Uri) -> Result<TlsConnector, crate::BoxError> { in into_tls_connector() 127 None => uri.host().ok_or_else(Error::new_invalid_uri)?, in into_tls_connector()
|
| /tonic/examples/src/tls_rustls/ |
| H A D | client.rs | 57 let uri = Uri::from_static("https://example.com"); in main() localVariable 58 let mut client = EchoClient::with_origin(client, uri); in main()
|
| /tonic/examples/src/h2c/ |
| H A D | client.rs | 63 let origin = request.uri(); in call() 66 .uri(origin) in call()
|
| /tonic/tonic-build/src/ |
| H A D | client.rs | 244 let path = http::uri::PathAndQuery::from_static(#path); in generate_unary() 275 let path = http::uri::PathAndQuery::from_static(#path); in generate_server_streaming() 306 let path = http::uri::PathAndQuery::from_static(#path); in generate_client_streaming() 337 let path = http::uri::PathAndQuery::from_static(#path); in generate_streaming()
|
| H A D | server.rs | 164 match req.uri().path() { in generate_internal()
|
| /tonic/tonic/src/service/ |
| H A D | interceptor.rs | 135 let uri = req.uri().clone(); in call() localVariable 148 let req = req.into_http(uri, method, version, SanitizeHeaders::No); in call()
|
| /tonic/tonic/src/client/ |
| H A D | grpc.rs | 13 uri::{PathAndQuery, Uri}, 388 let uri = Uri::from_parts(parts).expect("path_and_query only is valid Uri"); in prepare_request() localVariable 391 uri, in prepare_request()
|
| /tonic/tonic/benches-disabled/benchmarks/compiled_protos/ |
| H A D | helloworld.rs | 60 let path = http::uri::PathAndQuery::from_static("/helloworld.Greeter/SayHello"); in say_hello() 132 match req.uri().path() { in call()
|
| /tonic/tonic-health/src/generated/ |
| H A D | grpc_health_v1.rs | 156 let path = http::uri::PathAndQuery::from_static( in check() 195 let path = http::uri::PathAndQuery::from_static( in watch() 328 match req.uri().path() { in call()
|
| /tonic/tonic/src/ |
| H A D | request.rs | 176 uri: http::Uri, in into_http() 185 *request.uri_mut() = uri; in into_http()
|
| /tonic/tests/integration_tests/tests/ |
| H A D | origin.rs | 99 assert_eq!(req.uri().host(), Some("docs.rs")); in call()
|
| /tonic/tests/web/tests/ |
| H A D | grpc_web.rs | 131 .uri(request_uri) in build_request()
|
| /tonic/tonic-reflection/src/generated/ |
| H A D | grpc_reflection_v1.rs | 247 let path = http::uri::PathAndQuery::from_static( in server_reflection_info() 369 match req.uri().path() { in call()
|
| H A D | grpc_reflection_v1alpha.rs | 247 let path = http::uri::PathAndQuery::from_static( in server_reflection_info() 369 match req.uri().path() { in call()
|
| /tonic/tonic-web/src/ |
| H A D | service.rs | 76 trace!(kind = "simple", path = ?req.uri().path(), ?encoding, ?accept); in call()
|
| /tonic/ |
| H A D | CHANGELOG.md | 279 * Return error on non https uri instead of panic ([#838](https://github.com/hyperium/tonic/issues/8… 333 * **transport:** AddOrigin panic on invalid uri ([#801](https://github.com/hyperium/tonic/issues/80…
|