Home
last modified time | relevance | path

Searched refs:local_addr (Results 1 – 20 of 20) sorted by relevance

/tonic/tonic/src/transport/server/
H A Dconn.rs71 pub local_addr: Option<SocketAddr>, field
78 pub fn local_addr(&self) -> Option<SocketAddr> { in local_addr() method
79 self.local_addr in local_addr()
93 local_addr: self.local_addr().ok(), in connect_info()
/tonic/tonic-reflection/tests/
H A Dversions.rs68 let local_addr = format!("http://{}", listener.local_addr().expect("local address")); in make_v1_request() localVariable
85 let conn = tonic::transport::Endpoint::new(local_addr) in make_v1_request()
125 let local_addr = format!("http://{}", listener.local_addr().expect("local address")); in make_v1alpha_request() localVariable
142 let conn = tonic::transport::Endpoint::new(local_addr) in make_v1alpha_request()
H A Dserver.rs101 let local_addr = format!("http://{}", listener.local_addr().expect("local address")); in make_test_reflection_request() localVariable
121 let conn = tonic::transport::Endpoint::new(local_addr) in make_test_reflection_request()
/tonic/tests/integration_tests/tests/
H A Dconnect_info.rs19 assert!(req.local_addr().is_some()); in getting_connect_info()
32 let addr = listener.local_addr().unwrap(); in getting_connect_info()
86 assert!(req.local_addr().is_none()); in unary_call()
H A Dhttp2_keep_alive.rs24 let addr = listener.local_addr().unwrap(); in http2_keepalive_does_not_cause_panics()
54 let addr = listener.local_addr().unwrap(); in http2_keepalive_does_not_cause_panics_on_client_side()
H A Dstatus.rs38 let addr = listener.local_addr().unwrap(); in status_with_details()
96 let addr = listener.local_addr().unwrap(); in status_with_metadata()
167 let addr = listener.local_addr().unwrap(); in status_from_server_stream()
237 let addr = listener.local_addr().unwrap(); in message_and_then_status_from_server_stream()
H A Dconnection.rs44 let addr = listener.local_addr().unwrap(); in connect_returns_err_via_call_after_connected()
87 let addr = listener.local_addr().unwrap(); in connect_lazy_reconnects_after_first_failure()
H A Dextensions.rs43 let addr = listener.local_addr().unwrap(); in setting_extension_from_interceptor()
92 let addr = listener.local_addr().unwrap(); in setting_extension_from_tower()
H A Duser_agent.rs28 let addr = listener.local_addr().unwrap(); in writes_user_agent_header()
H A Dinterceptor.rs27 let addr = listener.local_addr().unwrap(); in interceptor_retrieves_grpc_method()
H A Dhttp2_max_header_list_size.rs34 let addr = format!("http://{}", listener.local_addr().unwrap()); in test_http_max_header_list_size_and_long_errors()
H A Dclient_layer.rs30 let addr = listener.local_addr().unwrap(); in connect_supports_standard_tower_layers()
H A Dtimeout.rs80 let addr = listener.local_addr().unwrap(); in run_service_in_background()
H A Dorigin.rs35 let addr = listener.local_addr().unwrap(); in writes_origin_header()
H A Droutes_builder.rs61 let addr = listener.local_addr().unwrap(); in multiple_service_using_routes_builder()
/tonic/tests/default_stubs/src/
H A Dtest_defaults.rs88 let addr = listener.local_addr().unwrap(); in run_services_in_background()
91 let addr_default_stubs = listener_default_stubs.local_addr().unwrap(); in run_services_in_background()
/tonic/tonic/src/
H A Drequest.rs215 pub fn local_addr(&self) -> Option<SocketAddr> { in local_addr() method
219 .and_then(|i| i.local_addr()); in local_addr()
225 .and_then(|i| i.get_ref().local_addr()) in local_addr()
/tonic/tests/web/tests/
H A Dgrpc_web.rs71 let url = format!("http://{}", listener.local_addr().unwrap()); in spawn()
H A Dgrpc.rs98 let url = format!("http://{}", lis.local_addr().unwrap()); in bind()
/tonic/
H A DCHANGELOG.md164 * **transport:** Add`local_addr` to `Request o` ([#1327](https://github.com/hyperium/tonic/issues/1…