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

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                # Coroutine\\Http2\\Client->write [TOC] 向服務器發送更多數據幀,可以多次調用`write`向同一個`stream`寫入數據幀。 ~~~ function Coroutine\Http2\Client->write(int $streamId, mixed $data, bool $end = false); ~~~ * `$streamId`流編號,由`send`方法返回 * `$data`數據幀的內容,可以為字符串或數組 * `$end`是否關閉流 ## 注意事項 * 如果要使用`write`分段發送數據幀,必須在`send`請求時將`$request->pipeline`設置為`true` * 當發送`end`為`true`的數據幀之后,流將關閉。之后不能再調用`write`向此`stream`發送數據 ## 使用實例 ~~~ use Swoole\Coroutine as co; co::create(function () use ($fp) { $cli = new co\Http2\Client('127.0.0.1', 9518); $cli->set([ 'timeout' => 1]); var_dump($cli->connect()); $req3 = new co\Http2\Request; $req3->path = "/index.php"; $req3->headers = [ 'host' => "localhost", "user-agent" => 'Chrome/49.0.2587.3', 'accept' => 'text/html,application/xhtml+xml,application/xml', 'accept-encoding' => 'gzip', ]; $req3->pipeline = true; $req3->method = "POST"; $streamId = $cli->send($req3); $cli->write($streamId, ['int' => rand(1000, 9999)]); $cli->write($streamId, ['int' => rand(1000, 9999)]); //end stream $cli->write($streamId, ['int' => rand(1000, 9999), 'end' => true], true); var_dump($cli->recv()); $cli->close(); }); ~~~
                  <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>

                              哎呀哎呀视频在线观看