A now defunct web server engine that is notable for its overuse of unsafe code, the memory safety bugs caused by that, and its deletion by its creator.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Nikolay Kim 6a0cd2dced Rename HttpServer::start() to HttpServer::run() пре 9 месеци
..
src compile with default-features off пре 9 месеци
tests Rename HttpServer::start() to HttpServer::run() пре 9 месеци
CHANGES.md prep awc release пре 9 месеци
Cargo.toml update actix-service dep пре 9 месеци
LICENSE-APACHE add license files пре 1 година
LICENSE-MIT add license files пре 1 година
README.md update readme пре 1 година

README.md

Actix http client Build Status codecov crates.io Join the chat at https://gitter.im/actix/actix

An HTTP Client

Documentation & community resources

Example

use actix_rt::System;
use awc::Client;
use futures::future::{Future, lazy};

fn main() {
    System::new("test").block_on(lazy(|| {
       let mut client = Client::default();

       client.get("http://www.rust-lang.org") // <- Create request builder
          .header("User-Agent", "Actix-web")
          .send()                             // <- Send http request
          .and_then(|response| {              // <- server http response
               println!("Response: {:?}", response);
               Ok(())
          })
    }));
}