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)
|
self.request(Method::OPTIONS, url)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Initialize a WebSockets connection.
|
/// Initialize a WebSocket connection.
|
||||||
/// This method returns a builder structure to establish a WebSocket connection.
|
/// Returns a WebSocket connection builder.
|
||||||
pub fn ws<U>(&self, url: U) -> ws::WebsocketsRequest
|
pub fn ws<U>(&self, url: U) -> ws::WebsocketsRequest
|
||||||
where
|
where
|
||||||
Uri: TryFrom<U>,
|
Uri: TryFrom<U>,
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
//! Websockets client
|
//! Websockets client
|
||||||
//!
|
//!
|
||||||
//! This module contains type definitions required to use [`awc::Client`](../struct.Client.html) as a WebSocket client.
|
//! Type definitions required to use [`awc::Client`](../struct.Client.html) as a WebSocket client.
|
||||||
//! To use `awc::Client`
|
|
||||||
//!
|
//!
|
||||||
//! # Example
|
//! # Example
|
||||||
//!
|
//!
|
||||||
|
@ -26,7 +25,6 @@
|
||||||
//! assert_eq!(response, ws::Frame::Text("Echo".as_bytes().into()));
|
//! assert_eq!(response, ws::Frame::Text("Echo".as_bytes().into()));
|
||||||
//! }
|
//! }
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
|
||||||
|
|
||||||
use std::convert::TryFrom;
|
use std::convert::TryFrom;
|
||||||
use std::net::SocketAddr;
|
use std::net::SocketAddr;
|
||||||
|
|
Loading…
Reference in New Issue