mirror of https://github.com/fafhrd91/actix-web
Polish the docs appearance
This commit is contained in:
parent
62aaf1fc4c
commit
c946ee7b4e
|
@ -15,7 +15,7 @@
|
||||||
//! let mut client = awc::Client::default();
|
//! let mut client = awc::Client::default();
|
||||||
//! let response = client.get("https://www.rust-lang.org") // <- Create request builder
|
//! let response = client.get("https://www.rust-lang.org") // <- Create request builder
|
||||||
//! .header("User-Agent", "Actix-web")
|
//! .header("User-Agent", "Actix-web")
|
||||||
//! .send() // <- Send http request
|
//! .send() // <- Send http request
|
||||||
//! .await?;
|
//! .await?;
|
||||||
//!
|
//!
|
||||||
//! println!("Response: {:?}", response);
|
//! println!("Response: {:?}", response);
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
//! ```rust
|
//! ```rust
|
||||||
//! # #[actix_rt::main]
|
//! # #[actix_rt::main]
|
||||||
//! # async fn main() -> Result<(), awc::error::SendRequestError> {
|
//! # async fn main() -> Result<(), awc::error::SendRequestError> {
|
||||||
//! let mut request = serde_json::json!({
|
//! let request = serde_json::json!({
|
||||||
//! "lang": "rust",
|
//! "lang": "rust",
|
||||||
//! "body": "json"
|
//! "body": "json"
|
||||||
//! });
|
//! });
|
||||||
|
|
Loading…
Reference in New Issue