Skip to content

Commit

Permalink
Export Http2 settings
Browse files Browse the repository at this point in the history
  • Loading branch information
0x676e67 committed Aug 13, 2024
1 parent 2ea7de7 commit 2d7b181
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/pre_configured_tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ use std::error::Error;

use boring::ssl::{SslConnector, SslMethod};
use http::HeaderValue;
use hyper::{PseudoOrder, SettingsOrder, StreamDependency, StreamId};
use rquest::{
tls::{Http2FrameSettings, TlsExtensionSettings, TlsSettings, Version},
HttpVersionPref,
};
use rquest::{PseudoOrder, SettingsOrder, StreamDependency, StreamId};

#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
Expand Down
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,9 @@ pub use self::async_impl::{
};
pub use self::proxy::{NoProxy, Proxy};

#[cfg(all(feature = "boring-tls", feature = "http2"))]
pub use hyper::{PseudoOrder, SettingsOrder, StreamDependency, StreamId};

mod async_impl;
#[cfg(feature = "blocking")]
pub mod blocking;
Expand Down

0 comments on commit 2d7b181

Please sign in to comment.