File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11mod emulation;
22mod http;
3+ mod request;
34mod response;
45mod upgrade;
56
67pub ( crate ) mod layer;
7- pub ( crate ) mod request;
88
99pub mod body;
1010#[ cfg( feature = "multipart" ) ]
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ pub enum SocksError<C> {
2424 Socks ( tokio_socks:: Error ) ,
2525 Io ( std:: io:: Error ) ,
2626 Utf8 ( std:: str:: Utf8Error ) ,
27-
2827 DnsFailure ,
2928 MissingHost ,
3029}
@@ -40,7 +39,6 @@ impl<C> std::fmt::Display for SocksError<C> {
4039 Self :: Utf8 ( e) => f. write_fmt ( format_args ! (
4140 "invalid UTF-8 during SOCKS authentication: {e}"
4241 ) ) ,
43-
4442 Self :: DnsFailure => f. write_str ( "could not resolve to acceptable address type" ) ,
4543 Self :: MissingHost => f. write_str ( "missing destination host" ) ,
4644 }
Original file line number Diff line number Diff line change 44
55mod pool;
66
7+ pub ( super ) mod dispatch;
8+
79pub mod conn;
810pub mod connect;
9- pub ( super ) mod dispatch;
1011pub mod future;
1112pub mod options;
1213pub mod proxy;
Original file line number Diff line number Diff line change 11//! http client protocol implementation and low level utilities.
22
3- pub use self :: error:: { Error , Result } ;
4-
5- pub mod body;
6- pub mod client;
73mod common;
84mod error;
9- pub mod ext ;
5+ mod proto ;
106
7+ pub mod body;
8+ pub mod client;
119pub mod collections;
12- mod proto ;
10+ pub mod ext ;
1311pub mod rt;
1412pub mod upgrade;
13+
14+ pub use self :: error:: { Error , Result } ;
Original file line number Diff line number Diff line change 11//! DNS resolution
22
3- #[ cfg( feature = "hickory-dns" ) ]
4- pub use hickory:: { HickoryDnsResolver , LookupIpStrategy } ;
5- pub use resolve:: { Addrs , Name , Resolve , Resolving } ;
6- pub ( crate ) use resolve:: { DnsResolverWithOverrides , DynResolver } ;
7-
83pub ( crate ) mod gai;
94#[ cfg( feature = "hickory-dns" ) ]
105pub ( crate ) mod hickory;
116pub ( crate ) mod resolve;
7+
8+ #[ cfg( feature = "hickory-dns" ) ]
9+ pub use hickory:: { HickoryDnsResolver , LookupIpStrategy } ;
10+ pub use resolve:: { Addrs , Name , Resolve , Resolving } ;
11+ pub ( crate ) use resolve:: { DnsResolverWithOverrides , DynResolver } ;
You can’t perform that action at this time.
0 commit comments