mirror of https://github.com/fafhrd91/actix-web
Apply suggestions from code review
Co-authored-by: Rob Ede <robjtede@icloud.com>
This commit is contained in:
parent
93bc3a7dd0
commit
ba9a09ba9e
|
@ -193,8 +193,8 @@ impl Client {
|
|||
self.request(Method::OPTIONS, url)
|
||||
}
|
||||
|
||||
/// Initialize a WebSockets connection.
|
||||
/// This method returns a builder structure to establish a WebSocket connection.
|
||||
/// Initialize a WebSocket connection.
|
||||
/// Returns a WebSocket connection builder.
|
||||
pub fn ws<U>(&self, url: U) -> ws::WebsocketsRequest
|
||||
where
|
||||
Uri: TryFrom<U>,
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
//! Websockets client
|
||||
//!
|
||||
//! This module contains type definitions required to use [`awc::Client`](../struct.Client.html) as a WebSocket client.
|
||||
//! To use `awc::Client`
|
||||
//! Type definitions required to use [`awc::Client`](../struct.Client.html) as a WebSocket client.
|
||||
//!
|
||||
//! # Example
|
||||
//!
|
||||
|
@ -26,7 +25,6 @@
|
|||
//! assert_eq!(response, ws::Frame::Text("Echo".as_bytes().into()));
|
||||
//! }
|
||||
//! ```
|
||||
//!
|
||||
|
||||
use std::convert::TryFrom;
|
||||
use std::net::SocketAddr;
|
||||
|
|
Loading…
Reference in New Issue