The HttpMessage class
PHP Manual

HttpMessage::getHeaders

(PECL pecl_http >= 0.10.0)

HttpMessage::getHeadersGet message headers

说明

public array HttpMessage::getHeaders ( void )

Get message headers.

返回值

Returns an associative array containing the messages HTTP headers.


The HttpMessage class
PHP Manual