mirror of
https://github.com/fafhrd91/actix-web
synced 2025-01-18 05:41:50 +01:00
update readme
This commit is contained in:
parent
ddfd7523f7
commit
e7ec77aa81
@ -7,15 +7,15 @@ An HTTP Client
|
|||||||
* [User Guide](https://actix.rs/docs/)
|
* [User Guide](https://actix.rs/docs/)
|
||||||
* [API Documentation](https://docs.rs/awc/)
|
* [API Documentation](https://docs.rs/awc/)
|
||||||
* [Chat on gitter](https://gitter.im/actix/actix)
|
* [Chat on gitter](https://gitter.im/actix/actix)
|
||||||
* Cargo package: [actix-http](https://crates.io/crates/awc)
|
* Cargo package: [awc](https://crates.io/crates/awc)
|
||||||
* Minimum supported Rust version: 1.33 or later
|
* Minimum supported Rust version: 1.33 or later
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
# use futures::future::{Future, lazy};
|
|
||||||
use actix_rt::System;
|
use actix_rt::System;
|
||||||
use awc::Client;
|
use awc::Client;
|
||||||
|
use futures::future::{Future, lazy};
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
System::new("test").block_on(lazy(|| {
|
System::new("test").block_on(lazy(|| {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user