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.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Nikolay Kim 6a0cd2dced Rename HttpServer::start() to HttpServer::run() il y a 9 mois
..
src compile with default-features off il y a 9 mois
tests Rename HttpServer::start() to HttpServer::run() il y a 9 mois
CHANGES.md prep awc release il y a 9 mois
Cargo.toml update actix-service dep il y a 9 mois
LICENSE-APACHE add license files il y a 1 an
LICENSE-MIT add license files il y a 1 an
README.md update readme il y a 1 an

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(())
          })
    }));
}