<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # Coroutine\\Http2\\Client->send [TOC] 向服務器發送請求,底層會自動建立一個`Http2`的`stream`。可以同時發起多個請求。 ~~~ function Coroutine\Http2\Client->send(swoole_http2_request $request) : int | false ~~~ * 接受`swoole_http2_request`類的對象作為參數 * 成功返回流的編號,編號為從`1`開始自增的奇數 * 失敗返回`false` ## Request對象 `swoole_http2_request`對象沒有任何方法,通過設置對象屬性來寫入請求相關的信息。 * `headers`數組,`HTTP`頭 * `method`字符串,設置請求方法,如`GET`、`POST` * `path`字符串,設置`URL`路徑,如`/index.php?a=1&b=2`,必須以`/`作為開始 * `cookies`數組,設置`COOKIES` * `data`設置請求的`body`,如果為字符串時將直接作為`RAW form-data`進行發送 * `data`為數組時,底層自動會打包為`x-www-form-urlencoded`格式的`POST`內容,并設置`Content-Type`為`application/x-www-form-urlencoded` * `pipeline`布爾型,如果設置為`true`,發送完`$request`后,不關閉`stream`,可以繼續寫入數據內容 ## PIPELINE 默認`send`方法在發送請求之后,會結束當前的`Http2 Stream`,啟用`PIPELINE`后,底層會保持`stream`流,可以多次調用`write`方法,向服務器發送數據幀,請參考`write`方法。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看