Swoole Coroutine HTTP Client

Swoole\Coroutine\HTTP\Client supports HTTP 1.1, HTTPS and WebSocket. It has to be executed within Coroutine context.

Multiple HTTP requests can be executed concurrently within one process with Coroutine HTTP Client.

It is normally not used directly — you can use Swoole PHP CURL within coroutine context.

Methods

  • Swoole\Coroutine\Http\Client::__construct
  • Swoole\Coroutine\Http\Client->set
  • Swoole\Coroutine\Http\Client->setDefer
  • Swoole\Coroutine\Http\Client->setMethod
  • Swoole\Coroutine\Http\Client->setHeaders
  • Swoole\Coroutine\Http\Client->setBasicAuth
  • Swoole\Coroutine\Http\Client->setCookies
  • Swoole\Coroutine\Http\Client->setData
  • Swoole\Coroutine\Http\Client->addData
  • Swoole\Coroutine\Http\Client->addFile
  • Swoole\Coroutine\Http\Client->getDefer
  • Swoole\Coroutine\Http\Client->getBody
  • Swoole\Coroutine\Http\Client->getHeaders
  • Swoole\Coroutine\Http\Client->getCookies
  • Swoole\Coroutine\Http\Client->getStatusCode
  • Swoole\Coroutine\Http\Client->getHeaderOut
  • Swoole\Coroutine\Http\Client->getsockname
  • Swoole\Coroutine\Http\Client->getpeername
  • Swoole\Coroutine\Http\Client->execute
  • Swoole\Coroutine\Http\Client->get
  • Swoole\Coroutine\Http\Client->post
  • Swoole\Coroutine\Http\Client->upgrade
  • Swoole\Coroutine\Http\Client->push
  • Swoole\Coroutine\Http\Client->recv
  • Swoole\Coroutine\Http\Client->close
  • Swoole\Coroutine\Http\Client->download