@@ -62,7 +62,7 @@ pub struct FlUrl {
6262 pub not_used_connection_timeout : Duration ,
6363 pub request_timeout : Duration ,
6464 pub do_not_reuse_connection : bool ,
65- pub clients_cache : Option < Arc < FlUrlHttpConnectionsCache > > ,
65+ pub connections_cache : Option < Arc < FlUrlHttpConnectionsCache > > ,
6666 pub compress_body : bool ,
6767 pub print_input_request : bool ,
6868 mode : FlUrlMode ,
@@ -122,11 +122,11 @@ impl FlUrl {
122122
123123 let result = Self {
124124 headers : FlUrlHeaders :: new ( ) ,
125- client_cert : None ,
125+ client_cert : Default :: default ( ) ,
126126 url_builder : url,
127127 accept_invalid_certificate : false ,
128128 do_not_reuse_connection : false ,
129- clients_cache : None ,
129+ connections_cache : Default :: default ( ) ,
130130 not_used_connection_timeout : Duration :: from_secs ( 30 ) ,
131131 max_retries : 0 ,
132132 request_timeout : Duration :: from_secs ( 10 ) ,
@@ -162,8 +162,8 @@ impl FlUrl {
162162 self
163163 }
164164
165- pub fn with_clients_cache ( mut self , clients_cache : Arc < FlUrlHttpConnectionsCache > ) -> Self {
166- self . clients_cache = Some ( clients_cache) ;
165+ pub fn set_connections_cache ( mut self , clients_cache : Arc < FlUrlHttpConnectionsCache > ) -> Self {
166+ self . connections_cache = Some ( clients_cache) ;
167167 self
168168 }
169169
@@ -440,7 +440,7 @@ impl FlUrl {
440440 . await
441441 }
442442 pub ( crate ) fn get_clients_cache ( & self ) -> Arc < FlUrlHttpConnectionsCache > {
443- match self . clients_cache . as_ref ( ) {
443+ match self . connections_cache . as_ref ( ) {
444444 Some ( cache) => cache. clone ( ) ,
445445 None => crate :: CLIENTS_CACHED . clone ( ) ,
446446 }
@@ -760,7 +760,7 @@ impl FlUrl {
760760
761761 loop {
762762 let http_client = http_client_resolver
763- . get_http_client (
763+ . get_http_connection (
764764 self . mode ,
765765 & self . url_builder ,
766766 self . headers . get_host_header_value ( ) ,
@@ -778,7 +778,7 @@ impl FlUrl {
778778
779779 if response. drop_connection ( ) {
780780 http_client_resolver
781- . drop_http_client (
781+ . drop_http_connection (
782782 & response. url ,
783783 #[ cfg( feature = "with-ssh" ) ]
784784 ssh_credentials. as_ref ( ) ,
@@ -789,7 +789,7 @@ impl FlUrl {
789789 }
790790 Err ( err) => {
791791 http_client_resolver
792- . drop_http_client (
792+ . drop_http_connection (
793793 & self . url_builder ,
794794 #[ cfg( feature = "with-ssh" ) ]
795795 ssh_credentials. as_ref ( ) ,
0 commit comments