1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-24 08:22:59 +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]
actix = "0.7.5"
actix-net = "0.1.1"
#actix-net = { git="https://github.com/actix/actix-net.git" }
#actix-net = "0.1.1"
actix-net = { git="https://github.com/actix/actix-net.git" }
base64 = "0.9"
bitflags = "1.0"

View File

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

View File

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

View File

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