mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 02:19:22 +02:00
better actix mod re-exports
This commit is contained in:
@ -1,6 +1,4 @@
|
||||
//! Http client request
|
||||
extern crate actix;
|
||||
|
||||
use std::cell::UnsafeCell;
|
||||
use std::rc::Rc;
|
||||
use std::time::Duration;
|
||||
@ -16,7 +14,7 @@ use http::{Error as HttpError, HttpTryFrom, StatusCode};
|
||||
use rand;
|
||||
use sha1::Sha1;
|
||||
|
||||
use self::actix::prelude::*;
|
||||
use actix::{Addr, SystemService};
|
||||
|
||||
use body::Binary;
|
||||
use error::{Error, UrlParseError};
|
||||
|
@ -25,7 +25,6 @@
|
||||
//!
|
||||
//! // Handler for ws::Message messages
|
||||
//! impl StreamHandler<ws::Message, ws::ProtocolError> for Ws {
|
||||
//!
|
||||
//! fn handle(&mut self, msg: ws::Message, ctx: &mut Self::Context) {
|
||||
//! match msg {
|
||||
//! ws::Message::Ping(msg) => ctx.pong(&msg),
|
||||
@ -42,13 +41,11 @@
|
||||
//! # .finish();
|
||||
//! # }
|
||||
//! ```
|
||||
extern crate actix;
|
||||
|
||||
use bytes::Bytes;
|
||||
use futures::{Async, Poll, Stream};
|
||||
use http::{header, Method, StatusCode};
|
||||
|
||||
use self::actix::{Actor, AsyncContext, StreamHandler};
|
||||
use super::actix::{Actor, AsyncContext, StreamHandler};
|
||||
|
||||
use body::Binary;
|
||||
use error::{Error, PayloadError, ResponseError};
|
||||
|
Reference in New Issue
Block a user