<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          awc異步 HTTP 和 WebSocket 客戶端庫

          聯(lián)合創(chuàng)作 · 2023-09-29 12:07

          awc (Actix Web Client) 是基于 Actix 生態(tài)構建的異步 HTTP 和 WebSocket 客戶端庫。

          示例

          use actix_rt::System;
          use awc::Client;
          
          fn main() {
              System::new().block_on(async {
                  let client = Client::default();
          
                  let res = client
                      .get("http://www.rust-lang.org")    // <- Create request builder
                      .insert_header(("User-Agent", "Actix-web"))
                      .send()                             // <- Send http request
                      .await;
          
                  println!("Response: {:?}", res);        // <- server http response
              });
          }
          瀏覽 26
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  狠狠V欧美v日韩V亚洲v | 黄a在线观看视频 | 久操爱| 大香久久| 国产三级片91 |