_generated\FunctionalTesterActions::haveHttpHeader PHP Method

haveHttpHeader() public method

Sets the HTTP header to the passed value - which is used on subsequent HTTP requests through PhpBrowser. Example: php setHeader('X-Requested-With', 'Codeception'); $I->amOnPage('test-headers.php'); ?>
See also: Codeception\Lib\InnerBrowser::haveHttpHeader()
public haveHttpHeader ( string $name, string $value )
$name string the name of the request header
$value string the value to set it to for subsequent requests
    public function haveHttpHeader($name, $value)
    {
        return $this->getScenario()->runStep(new \Codeception\Step\Action('haveHttpHeader', func_get_args()));
    }
FunctionalTesterActions