array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'swoole-http-client.setheaders.php', 1 => 'Swoole\\Http\\Client::setHeaders', 2 => 'Set the HTTP request headers.', ), 'up' => array ( 0 => 'class.swoole-http-client.php', 1 => 'Swoole\\Http\\Client', ), 'prev' => array ( 0 => 'swoole-http-client.setdata.php', 1 => 'Swoole\\Http\\Client::setData', ), 'next' => array ( 0 => 'swoole-http-client.setmethod.php', 1 => 'Swoole\\Http\\Client::setMethod', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/swoole/swoole/http/client/setheaders.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Swoole\Http\Client::setHeaders

(PECL swoole >= 1.9.0)

Swoole\Http\Client::setHeadersSet the HTTP request headers.

说明

public Swoole\Http\Client::setHeaders(array $headers): void

参数

headers

返回值