mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-24 07:53:00 +01:00
update deps; export api
This commit is contained in:
parent
4260692034
commit
bc6e62349c
@ -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"
|
||||
|
@ -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")
|
||||
}
|
||||
|
||||
|
@ -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),
|
||||
|
@ -36,6 +36,7 @@ pub enum Frame {
|
||||
Close(Option<CloseReason>),
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
/// WebSockets protocol codec
|
||||
pub struct Codec {
|
||||
max_size: usize,
|
||||
|
Loading…
Reference in New Issue
Block a user