The HttpRequest
PHP 手册

HttpRequest::getHeaders

(PECL pecl_http >= 0.10.0)

HttpRequest::getHeadersGet headers

说明

public array HttpRequest::getHeaders ( void )

Get previously set request headers.

返回值

Returns an associative array containing all currently set headers.


The HttpRequest
PHP 手册