_generated\FunctionalTesterActions::deleteHeader PHP Method

deleteHeader() public method

Deletes the header with the passed name. Subsequent requests will not have the deleted header in its request. Example: php haveHttpHeader('X-Requested-With', 'Codeception'); $I->amOnPage('test-headers.php'); ... $I->deleteHeader('X-Requested-With'); $I->amOnPage('some-other-page.php'); ?>
See also: Codeception\Lib\InnerBrowser::deleteHeader()
public deleteHeader ( string $name )
$name string the name of the header to delete.
    public function deleteHeader($name)
    {
        return $this->getScenario()->runStep(new \Codeception\Step\Action('deleteHeader', func_get_args()));
    }
FunctionalTesterActions