11//! Emulation for different browsers.
2- #![ allow( missing_debug_implementations) ]
3- #![ allow( missing_docs) ]
42
53#[ macro_use]
64mod macros;
@@ -10,29 +8,20 @@ pub mod okhttp;
108pub mod opera;
119pub mod safari;
1210
13- mod emulation_imports {
14- #[ cfg( all( feature = "gzip" , feature = "deflate" , feature = "brotli" ) ) ]
15- pub use wreq:: header:: ACCEPT_ENCODING ;
16- pub use wreq:: {
17- Emulation ,
18- header:: { ACCEPT , ACCEPT_LANGUAGE , HeaderMap , HeaderName , HeaderValue , USER_AGENT } ,
19- http2:: Http2Options ,
20- } ;
21-
22- pub use crate :: emulation:: { EmulationOS , EmulationOption } ;
23- }
24-
25- mod tls_imports {
26- pub use typed_builder:: TypedBuilder ;
27- pub use wreq:: tls:: {
11+ pub use typed_builder:: TypedBuilder ;
12+ #[ cfg( all( feature = "gzip" , feature = "deflate" , feature = "brotli" ) ) ]
13+ pub use wreq:: header:: ACCEPT_ENCODING ;
14+ pub use wreq:: {
15+ Emulation ,
16+ header:: { ACCEPT , ACCEPT_LANGUAGE , HeaderMap , HeaderName , HeaderValue , USER_AGENT } ,
17+ http2:: {
18+ Http2Options , Priorities , Priority , PseudoId , PseudoOrder , SettingId , SettingsOrder ,
19+ StreamDependency , StreamId ,
20+ } ,
21+ tls:: {
2822 AlpnProtocol , AlpsProtocol , CertificateCompressionAlgorithm , ExtensionType , TlsOptions ,
2923 TlsVersion ,
30- } ;
31- }
24+ } ,
25+ } ;
3226
33- mod http2_imports {
34- pub use wreq:: http2:: {
35- Priorities , Priority , PseudoId , PseudoOrder , SettingId , SettingsOrder , StreamDependency ,
36- StreamId ,
37- } ;
38- }
27+ pub use crate :: emulation:: { EmulationOS , EmulationOption } ;
0 commit comments