Documentation

setHttpHeaders

 public
\Bitrix\Conversion\Internals\MobileDetect::setHttpHeaders(
 array $httpHeaders = null
);

Non-static method sets HTTP headers. Header titles must have style of keys of the global PHP variable $_SERVER, i. e. in capital letters and underscores instead of hyphens. Method re-rests current headers.

Parameters

ParameterDescriptionVersion
$httpHeadersHeaders to set. When empty, uses $_SERVER for getting headers. Empty value is set by default for backward compatibility.


© «Bitrix24», 2001-2024
Up