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.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
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年前


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

An HTTP Client

Documentation & community resources


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