EventHttpRequest::findHeader
(PECL event >= 1.4.0-beta)
EventHttpRequest::findHeader — Finds the value belonging a header
說明
public
EventHttpRequest::findHeader(
string
$key
,
string
$type
): voidFinds the value belonging a header.
參數
-
key
-
The header name.
-
type
-
One of
EventHttpRequest::*_HEADER
constants .
返回值
Returns null
if header not found.
參見
- EventHttpRequest::addHeader() - Adds an HTTP header to the headers of the request