1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-28 01:52:57 +01:00

update deps; export api

This commit is contained in:
Nikolay Kim 2018-10-23 21:44:20 -07:00
parent 4260692034
commit bc6e62349c
4 changed files with 16 additions and 16 deletions

View File

@ -36,8 +36,8 @@ cell = ["actix-net/cell"]
[dependencies] [dependencies]
actix = "0.7.5" actix = "0.7.5"
actix-net = "0.1.1" #actix-net = "0.1.1"
#actix-net = { git="https://github.com/actix/actix-net.git" } actix-net = { git="https://github.com/actix/actix-net.git" }
base64 = "0.9" base64 = "0.9"
bitflags = "1.0" bitflags = "1.0"

View File

@ -23,16 +23,16 @@ pub struct Request {
pub(crate) inner: Rc<Message>, pub(crate) inner: Rc<Message>,
} }
pub(crate) struct Message { pub struct Message {
pub(crate) version: Version, pub version: Version,
pub(crate) status: StatusCode, pub status: StatusCode,
pub(crate) method: Method, pub method: Method,
pub(crate) url: Url, pub url: Url,
pub(crate) flags: Cell<MessageFlags>, pub headers: HeaderMap,
pub(crate) headers: HeaderMap, pub extensions: RefCell<Extensions>,
pub(crate) extensions: RefCell<Extensions>, pub payload: RefCell<Option<Payload>>,
pub(crate) payload: RefCell<Option<Payload>>,
pub(crate) pool: &'static MessagePool, pub(crate) pool: &'static MessagePool,
pub(crate) flags: Cell<MessageFlags>,
} }
impl Message { impl Message {
@ -87,12 +87,14 @@ impl Request {
} }
#[inline] #[inline]
pub(crate) fn inner(&self) -> &Message { #[doc(hidden)]
pub fn inner(&self) -> &Message {
self.inner.as_ref() self.inner.as_ref()
} }
#[inline] #[inline]
pub(crate) fn inner_mut(&mut self) -> &mut Message { #[doc(hidden)]
pub fn inner_mut(&mut self) -> &mut Message {
Rc::get_mut(&mut self.inner).expect("Multiple copies exist") Rc::get_mut(&mut self.inner).expect("Multiple copies exist")
} }

View File

@ -36,9 +36,6 @@ pub enum ClientError {
/// Http parsing error /// Http parsing error
#[fail(display = "Http parsing error")] #[fail(display = "Http parsing error")]
Http(HttpError), Http(HttpError),
// /// Url parsing error
// #[fail(display = "Url parsing error")]
// Url(UrlParseError),
/// Response parsing error /// Response parsing error
#[fail(display = "Response parsing error")] #[fail(display = "Response parsing error")]
ParseError(ParseError), ParseError(ParseError),

View File

@ -36,6 +36,7 @@ pub enum Frame {
Close(Option<CloseReason>), Close(Option<CloseReason>),
} }
#[derive(Debug)]
/// WebSockets protocol codec /// WebSockets protocol codec
pub struct Codec { pub struct Codec {
max_size: usize, max_size: usize,