@@ -17,7 +17,7 @@ use hyper::{
17
17
use hyper_util:: rt:: { TokioExecutor , TokioIo } ;
18
18
use mirrord_protocol:: {
19
19
tcp:: {
20
- HttpRequestMetadata , HttpRequestTransportType , HTTP_CHUNKED_REQUEST_V2_VERSION ,
20
+ HttpRequestMetadata , IncomingTrafficTransportType , HTTP_CHUNKED_REQUEST_V2_VERSION ,
21
21
HTTP_FILTERED_UPGRADE_VERSION ,
22
22
} ,
23
23
ConnectionId , LogMessage , RequestId ,
@@ -712,11 +712,11 @@ where
712
712
self . next_request_id += 1 ;
713
713
714
714
let transport = match self . original_destination . connector ( ) {
715
- Some ( connector) => HttpRequestTransportType :: Tls {
715
+ Some ( connector) => IncomingTrafficTransportType :: Tls {
716
716
alpn_protocol : connector. alpn_protocol ( ) . map ( Vec :: from) ,
717
717
server_name : connector. server_name ( ) . map ( |name| name. to_str ( ) . into ( ) ) ,
718
718
} ,
719
- None => HttpRequestTransportType :: Tcp ,
719
+ None => IncomingTrafficTransportType :: Tcp ,
720
720
} ;
721
721
722
722
tx. send ( ConnectionMessageOut :: Request {
@@ -1327,7 +1327,7 @@ mod test {
1327
1327
connection_id: TestSetup :: CONNECTION_ID ,
1328
1328
id,
1329
1329
metadata: HttpRequestMetadata :: V1 { destination, .. } ,
1330
- transport: HttpRequestTransportType :: Tcp ,
1330
+ transport: IncomingTrafficTransportType :: Tcp ,
1331
1331
..
1332
1332
} => {
1333
1333
assert_eq!( received_client_id, client_id) ;
@@ -1424,7 +1424,7 @@ mod test {
1424
1424
connection_id: TestSetup :: CONNECTION_ID ,
1425
1425
id,
1426
1426
metadata: HttpRequestMetadata :: V1 { destination, .. } ,
1427
- transport: HttpRequestTransportType :: Tcp ,
1427
+ transport: IncomingTrafficTransportType :: Tcp ,
1428
1428
..
1429
1429
} => {
1430
1430
assert_eq!( received_client_id, subscribed_client_id) ;
@@ -1511,7 +1511,7 @@ mod test {
1511
1511
connection_id: TestSetup :: CONNECTION_ID ,
1512
1512
id,
1513
1513
metadata: HttpRequestMetadata :: V1 { destination, .. } ,
1514
- transport: HttpRequestTransportType :: Tcp ,
1514
+ transport: IncomingTrafficTransportType :: Tcp ,
1515
1515
..
1516
1516
} => {
1517
1517
assert_eq!( destination, setup. original_address) ;
@@ -1551,7 +1551,7 @@ mod test {
1551
1551
connection_id: TestSetup :: CONNECTION_ID ,
1552
1552
id,
1553
1553
metadata: HttpRequestMetadata :: V1 { destination, .. } ,
1554
- transport: HttpRequestTransportType :: Tcp ,
1554
+ transport: IncomingTrafficTransportType :: Tcp ,
1555
1555
..
1556
1556
} => {
1557
1557
assert_eq!( destination, setup. original_address) ;
@@ -1617,7 +1617,7 @@ mod test {
1617
1617
connection_id: TestSetup :: CONNECTION_ID ,
1618
1618
id,
1619
1619
metadata: HttpRequestMetadata :: V1 { destination, .. } ,
1620
- transport: HttpRequestTransportType :: Tcp ,
1620
+ transport: IncomingTrafficTransportType :: Tcp ,
1621
1621
..
1622
1622
} => {
1623
1623
assert_eq!( destination, setup. original_address) ;
@@ -1702,7 +1702,7 @@ mod test {
1702
1702
connection_id: TestSetup :: CONNECTION_ID ,
1703
1703
id,
1704
1704
metadata: HttpRequestMetadata :: V1 { destination, .. } ,
1705
- transport: HttpRequestTransportType :: Tcp ,
1705
+ transport: IncomingTrafficTransportType :: Tcp ,
1706
1706
..
1707
1707
} => {
1708
1708
assert_eq!( destination, setup. original_address) ;
@@ -1755,7 +1755,7 @@ mod test {
1755
1755
id,
1756
1756
metadata: HttpRequestMetadata :: V1 { destination, .. } ,
1757
1757
request,
1758
- transport: HttpRequestTransportType :: Tcp ,
1758
+ transport: IncomingTrafficTransportType :: Tcp ,
1759
1759
..
1760
1760
} => {
1761
1761
assert_eq!( destination, setup. original_address) ;
@@ -1888,7 +1888,7 @@ mod test {
1888
1888
connection_id: TestSetup :: CONNECTION_ID ,
1889
1889
id,
1890
1890
metadata: HttpRequestMetadata :: V1 { destination, .. } ,
1891
- transport: HttpRequestTransportType :: Tcp ,
1891
+ transport: IncomingTrafficTransportType :: Tcp ,
1892
1892
..
1893
1893
} => {
1894
1894
assert_eq!( destination, setup. original_address) ;
@@ -2136,7 +2136,7 @@ mod test {
2136
2136
connection_id : 0 ,
2137
2137
id : 0 ,
2138
2138
transport :
2139
- HttpRequestTransportType :: Tls {
2139
+ IncomingTrafficTransportType :: Tls {
2140
2140
alpn_protocol,
2141
2141
server_name,
2142
2142
} ,
@@ -2221,7 +2221,7 @@ mod test {
2221
2221
connection_id: TestSetup :: CONNECTION_ID ,
2222
2222
id,
2223
2223
metadata: HttpRequestMetadata :: V1 { destination, .. } ,
2224
- transport: HttpRequestTransportType :: Tcp ,
2224
+ transport: IncomingTrafficTransportType :: Tcp ,
2225
2225
..
2226
2226
} => {
2227
2227
assert_eq!( received_client_id, 0 ) ;
0 commit comments