1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-28 09:42:40 +01:00

add DefaultClient type alias

This commit is contained in:
Nikolay Kim 2018-10-22 18:52:40 -07:00
parent 09c94cb06b
commit 4260692034
3 changed files with 5 additions and 2 deletions

View File

@ -4,7 +4,7 @@ mod service;
pub use self::connect::Connect;
pub use self::error::ClientError;
pub use self::service::Client;
pub use self::service::{Client, DefaultClient};
#[derive(PartialEq, Hash, Debug, Clone, Copy)]
pub(crate) enum Protocol {

View File

@ -19,6 +19,9 @@ use ws::Codec;
use super::{ClientError, Connect, Protocol};
/// Default client, uses default connector.
pub type DefaultClient = Client<DefaultConnector<String>>;
/// WebSocket's client
pub struct Client<T>
where

View File

@ -18,7 +18,7 @@ mod proto;
mod service;
mod transport;
pub use self::client::{Client, ClientError, Connect};
pub use self::client::{Client, ClientError, Connect, DefaultClient};
pub use self::codec::{Codec, Frame, Message};
pub use self::frame::Parser;
pub use self::proto::{CloseCode, CloseReason, OpCode};