@@ -269,7 +269,7 @@ impl ConnectorService {
269269 http. set_nodelay ( true ) ;
270270 }
271271
272- let mut connector = self . build_tls_connector ( http, req. ex_data ( ) ) ?;
272+ let mut connector = self . build_tls_connector ( http, req. metadata ( ) ) ?;
273273 let io = connector. call ( req) . await ?;
274274
275275 // If the connection is HTTPS, wrap the TLS stream in a TlsConn for unified handling.
@@ -327,7 +327,7 @@ impl ConnectorService {
327327
328328 // Create a TLS connector for the established connection.
329329 let mut connector =
330- self . build_tls_connector ( self . http . clone ( ) , req. ex_data ( ) ) ?;
330+ self . build_tls_connector ( self . http . clone ( ) , req. metadata ( ) ) ?;
331331 let established_conn = EstablishedConn :: new ( req, conn) ;
332332 let io = connector. call ( established_conn) . await ?;
333333
@@ -349,7 +349,7 @@ impl ConnectorService {
349349 trace ! ( "tunneling HTTPS over HTTP proxy: {:?}" , proxy_uri) ;
350350
351351 // Create a tunnel connector with the proxy URI and the HTTP connector.
352- let mut connector = self . build_tls_connector ( self . http . clone ( ) , req. ex_data ( ) ) ?;
352+ let mut connector = self . build_tls_connector ( self . http . clone ( ) , req. metadata ( ) ) ?;
353353 let mut tunnel = proxy:: tunnel:: TunnelConnector :: new ( proxy_uri, connector. clone ( ) ) ;
354354
355355 // If the proxy has basic authentication, add it to the tunnel.
@@ -391,8 +391,8 @@ impl ConnectorService {
391391 debug ! ( "starting new connection: {:?}" , req. uri( ) ) ;
392392
393393 let intercepted = req
394- . ex_data ( )
395- . proxy ( )
394+ . metadata ( )
395+ . proxy_matcher ( )
396396 . and_then ( |prox| prox. intercept ( req. uri ( ) ) )
397397 . or_else ( || {
398398 self . config
0 commit comments