mirror of
https://github.com/actix/actix-web.git
synced 2024-12-23 00:26:34 +00:00
Prepare release 0.7.16
This commit is contained in:
parent
90eef31cc0
commit
46db09428c
14 changed files with 34 additions and 25 deletions
|
@ -1,6 +1,6 @@
|
||||||
# Changes
|
# Changes
|
||||||
|
|
||||||
## [0.7.16] - xxxx-xx-xx
|
## [0.7.16] - 2018-12-11
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "actix-web"
|
name = "actix-web"
|
||||||
version = "0.7.15"
|
version = "0.7.16"
|
||||||
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
||||||
description = "Actix web is a simple, pragmatic and extremely fast web framework for Rust."
|
description = "Actix web is a simple, pragmatic and extremely fast web framework for Rust."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
@ -61,7 +61,7 @@ flate2-rust = ["flate2/rust_backend"]
|
||||||
cell = ["actix-net/cell"]
|
cell = ["actix-net/cell"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix = "0.7.7"
|
actix = "0.7.9"
|
||||||
actix-net = "0.2.2"
|
actix-net = "0.2.2"
|
||||||
|
|
||||||
askama_escape = "0.1.0"
|
askama_escape = "0.1.0"
|
||||||
|
|
|
@ -3,8 +3,8 @@ use std::net::Shutdown;
|
||||||
use std::time::{Duration, Instant};
|
use std::time::{Duration, Instant};
|
||||||
use std::{fmt, io, mem, time};
|
use std::{fmt, io, mem, time};
|
||||||
|
|
||||||
use actix::resolver::{Connect as ResolveConnect, Resolver, ResolverError};
|
use actix_inner::actors::resolver::{Connect as ResolveConnect, Resolver, ResolverError};
|
||||||
use actix::{
|
use actix_inner::{
|
||||||
fut, Actor, ActorFuture, ActorResponse, AsyncContext, Context,
|
fut, Actor, ActorFuture, ActorResponse, AsyncContext, Context,
|
||||||
ContextFutureSpawner, Handler, Message, Recipient, StreamHandler, Supervised,
|
ContextFutureSpawner, Handler, Message, Recipient, StreamHandler, Supervised,
|
||||||
SystemService, WrapFuture,
|
SystemService, WrapFuture,
|
||||||
|
|
|
@ -2,11 +2,12 @@
|
||||||
//!
|
//!
|
||||||
//! ```rust
|
//! ```rust
|
||||||
//! # extern crate actix_web;
|
//! # extern crate actix_web;
|
||||||
|
//! # extern crate actix;
|
||||||
//! # extern crate futures;
|
//! # extern crate futures;
|
||||||
//! # extern crate tokio;
|
//! # extern crate tokio;
|
||||||
//! # use futures::Future;
|
//! # use futures::Future;
|
||||||
//! # use std::process;
|
//! # use std::process;
|
||||||
//! use actix_web::{actix, client};
|
//! use actix_web::client;
|
||||||
//!
|
//!
|
||||||
//! fn main() {
|
//! fn main() {
|
||||||
//! actix::run(
|
//! actix::run(
|
||||||
|
@ -61,12 +62,13 @@ impl ResponseError for SendRequestError {
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// # extern crate actix_web;
|
/// # extern crate actix_web;
|
||||||
|
/// # extern crate actix;
|
||||||
/// # extern crate futures;
|
/// # extern crate futures;
|
||||||
/// # extern crate tokio;
|
/// # extern crate tokio;
|
||||||
/// # extern crate env_logger;
|
/// # extern crate env_logger;
|
||||||
/// # use futures::Future;
|
/// # use futures::Future;
|
||||||
/// # use std::process;
|
/// # use std::process;
|
||||||
/// use actix_web::{actix, client};
|
/// use actix_web::client;
|
||||||
///
|
///
|
||||||
/// fn main() {
|
/// fn main() {
|
||||||
/// actix::run(
|
/// actix::run(
|
||||||
|
|
|
@ -6,7 +6,8 @@ use std::time::{Duration, Instant};
|
||||||
use std::{io, mem};
|
use std::{io, mem};
|
||||||
use tokio_timer::Delay;
|
use tokio_timer::Delay;
|
||||||
|
|
||||||
use actix::{Addr, Request, SystemService};
|
use actix_inner::dev::Request;
|
||||||
|
use actix::{Addr, SystemService};
|
||||||
|
|
||||||
use super::{
|
use super::{
|
||||||
ClientConnector, ClientConnectorError, ClientRequest, ClientResponse, Connect,
|
ClientConnector, ClientConnectorError, ClientRequest, ClientResponse, Connect,
|
||||||
|
|
|
@ -27,11 +27,12 @@ use httprequest::HttpRequest;
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// # extern crate actix_web;
|
/// # extern crate actix_web;
|
||||||
|
/// # extern crate actix;
|
||||||
/// # extern crate futures;
|
/// # extern crate futures;
|
||||||
/// # extern crate tokio;
|
/// # extern crate tokio;
|
||||||
/// # use futures::Future;
|
/// # use futures::Future;
|
||||||
/// # use std::process;
|
/// # use std::process;
|
||||||
/// use actix_web::{actix, client};
|
/// use actix_web::client;
|
||||||
///
|
///
|
||||||
/// fn main() {
|
/// fn main() {
|
||||||
/// actix::run(
|
/// actix::run(
|
||||||
|
|
|
@ -751,7 +751,6 @@ pub enum EitherCollisionStrategy {
|
||||||
PreferB,
|
PreferB,
|
||||||
/// Return result of the faster, error of the slower if both fail
|
/// Return result of the faster, error of the slower if both fail
|
||||||
FastestSuccessful,
|
FastestSuccessful,
|
||||||
|
|
||||||
/// Return error if both succeed, return error of A if both fail
|
/// Return error if both succeed, return error of A if both fail
|
||||||
ErrorA,
|
ErrorA,
|
||||||
/// Return error if both succeed, return error of B if both fail
|
/// Return error if both succeed, return error of B if both fail
|
||||||
|
@ -764,6 +763,9 @@ impl Default for EitherCollisionStrategy {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
///Determines Either extractor configuration
|
||||||
|
///
|
||||||
|
///By default `EitherCollisionStrategy::FastestSuccessful` is used.
|
||||||
pub struct EitherConfig<A,B,S> where A: FromRequest<S>, B: FromRequest<S> {
|
pub struct EitherConfig<A,B,S> where A: FromRequest<S>, B: FromRequest<S> {
|
||||||
a: A::Config,
|
a: A::Config,
|
||||||
b: B::Config,
|
b: B::Config,
|
||||||
|
|
|
@ -213,9 +213,10 @@ pub trait HttpMessage: Sized {
|
||||||
/// # extern crate actix_web;
|
/// # extern crate actix_web;
|
||||||
/// # extern crate env_logger;
|
/// # extern crate env_logger;
|
||||||
/// # extern crate futures;
|
/// # extern crate futures;
|
||||||
|
/// # extern crate actix;
|
||||||
/// # use std::str;
|
/// # use std::str;
|
||||||
/// # use actix_web::*;
|
/// # use actix_web::*;
|
||||||
/// # use actix_web::actix::fut::FinishStream;
|
/// # use actix::FinishStream;
|
||||||
/// # use futures::{Future, Stream};
|
/// # use futures::{Future, Stream};
|
||||||
/// # use futures::future::{ok, result, Either};
|
/// # use futures::future::{ok, result, Either};
|
||||||
/// fn index(mut req: HttpRequest) -> Box<Future<Item = HttpResponse, Error = Error>> {
|
/// fn index(mut req: HttpRequest) -> Box<Future<Item = HttpResponse, Error = Error>> {
|
||||||
|
|
16
src/lib.rs
16
src/lib.rs
|
@ -217,14 +217,12 @@ pub use server::Request;
|
||||||
|
|
||||||
pub mod actix {
|
pub mod actix {
|
||||||
//! Re-exports [actix's](https://docs.rs/actix/) prelude
|
//! Re-exports [actix's](https://docs.rs/actix/) prelude
|
||||||
|
pub use super::actix_inner::actors::resolver;
|
||||||
extern crate actix;
|
pub use super::actix_inner::actors::signal;
|
||||||
pub use self::actix::actors::resolver;
|
pub use super::actix_inner::fut;
|
||||||
pub use self::actix::actors::signal;
|
pub use super::actix_inner::msgs;
|
||||||
pub use self::actix::fut;
|
pub use super::actix_inner::prelude::*;
|
||||||
pub use self::actix::msgs;
|
pub use super::actix_inner::{run, spawn};
|
||||||
pub use self::actix::prelude::*;
|
|
||||||
pub use self::actix::{run, spawn};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "openssl")]
|
#[cfg(feature = "openssl")]
|
||||||
|
@ -255,7 +253,7 @@ pub mod dev {
|
||||||
|
|
||||||
pub use body::BodyStream;
|
pub use body::BodyStream;
|
||||||
pub use context::Drain;
|
pub use context::Drain;
|
||||||
pub use extractor::{FormConfig, PayloadConfig, QueryConfig, PathConfig};
|
pub use extractor::{FormConfig, PayloadConfig, QueryConfig, PathConfig, EitherConfig, EitherCollisionStrategy};
|
||||||
pub use handler::{AsyncResult, Handler};
|
pub use handler::{AsyncResult, Handler};
|
||||||
pub use httpmessage::{MessageBody, Readlines, UrlEncoded};
|
pub use httpmessage::{MessageBody, Readlines, UrlEncoded};
|
||||||
pub use httpresponse::HttpResponseBuilder;
|
pub use httpresponse::HttpResponseBuilder;
|
||||||
|
|
|
@ -33,7 +33,8 @@
|
||||||
//!
|
//!
|
||||||
//! ```rust
|
//! ```rust
|
||||||
//! # extern crate actix_web;
|
//! # extern crate actix_web;
|
||||||
//! use actix_web::{actix, server, App, HttpRequest, Result};
|
//! # extern crate actix;
|
||||||
|
//! use actix_web::{server, App, HttpRequest, Result};
|
||||||
//! use actix_web::middleware::session::{RequestSession, SessionStorage, CookieSessionBackend};
|
//! use actix_web::middleware::session::{RequestSession, SessionStorage, CookieSessionBackend};
|
||||||
//!
|
//!
|
||||||
//! fn index(req: HttpRequest) -> Result<&'static str> {
|
//! fn index(req: HttpRequest) -> Result<&'static str> {
|
||||||
|
|
|
@ -457,7 +457,8 @@ impl<H: IntoHttpHandler, F: Fn() -> H + Send + Clone> HttpServer<H, F> {
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// extern crate actix_web;
|
/// extern crate actix_web;
|
||||||
/// use actix_web::{actix, server, App, HttpResponse};
|
/// extern crate actix;
|
||||||
|
/// use actix_web::{server, App, HttpResponse};
|
||||||
///
|
///
|
||||||
/// fn main() {
|
/// fn main() {
|
||||||
/// let sys = actix::System::new("example"); // <- create Actix system
|
/// let sys = actix::System::new("example"); // <- create Actix system
|
||||||
|
|
|
@ -166,7 +166,8 @@ const HW_BUFFER_SIZE: usize = 32_768;
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// # extern crate actix_web;
|
/// # extern crate actix_web;
|
||||||
/// use actix_web::{actix, server, App, HttpResponse};
|
/// # extern crate actix;
|
||||||
|
/// use actix_web::{server, App, HttpResponse};
|
||||||
///
|
///
|
||||||
/// fn main() {
|
/// fn main() {
|
||||||
/// let sys = actix::System::new("example"); // <- create Actix system
|
/// let sys = actix::System::new("example"); // <- create Actix system
|
||||||
|
|
|
@ -4,7 +4,7 @@ use std::str::FromStr;
|
||||||
use std::sync::mpsc;
|
use std::sync::mpsc;
|
||||||
use std::{net, thread};
|
use std::{net, thread};
|
||||||
|
|
||||||
use actix_inner::{Actor, Addr, System};
|
use actix::{Actor, Addr, System};
|
||||||
|
|
||||||
use cookie::Cookie;
|
use cookie::Cookie;
|
||||||
use futures::Future;
|
use futures::Future;
|
||||||
|
|
|
@ -8,7 +8,8 @@
|
||||||
//!
|
//!
|
||||||
//! ```rust
|
//! ```rust
|
||||||
//! # extern crate actix_web;
|
//! # extern crate actix_web;
|
||||||
//! # use actix_web::actix::*;
|
//! # extern crate actix;
|
||||||
|
//! # use actix::prelude::*;
|
||||||
//! # use actix_web::*;
|
//! # use actix_web::*;
|
||||||
//! use actix_web::{ws, HttpRequest, HttpResponse};
|
//! use actix_web::{ws, HttpRequest, HttpResponse};
|
||||||
//!
|
//!
|
||||||
|
|
Loading…
Reference in a new issue