From 49b02d822a3d0bf2ba91de1460ef47135224dcad Mon Sep 17 00:00:00 2001 From: 0x676e67 Date: Sun, 8 Sep 2024 17:55:52 +0800 Subject: [PATCH] Update docs --- src/lib.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 9f6eecd..1048e6d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -55,17 +55,15 @@ //! The `websocket` module provides a way to upgrade a connection to a websocket. //! //! ```rust,no_run -//! use std::error::Error; -//! use tungstenite::Message; -//! //! use futures_util::{SinkExt, StreamExt, TryStreamExt}; -//! use rquest::{impersonate::Impersonate, Client}; +//! use rquest::{tls::Impersonate, Client, Message}; +//! use std::error::Error; //! //! #[tokio::main] //! async fn main() -> Result<(), Box> { //! let websocket = Client::builder() //! .impersonate(Impersonate::Chrome127) -//! +//! .http1_only() //! .build()? //! .get("wss://echo.websocket.org") //! .upgrade()