Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and github-actions[bot] committed Sep 11, 2024
1 parent cd3eded commit 19f37fc
Show file tree
Hide file tree
Showing 7 changed files with 161 additions and 112 deletions.
39 changes: 23 additions & 16 deletions docs/modules/Laminas.md
Original file line number Diff line number Diff line change
Expand Up @@ -328,24 +328,10 @@ $I->click(['link' => 'Login']);

#### deleteHeader

* `param string` $name the name of the header to delete.
@deprecated
* `param string` $name
* `return void`

Deletes the header with the passed name. Subsequent requests
will not have the deleted header in its request.

Example:
{% highlight php %}

<?php
$I->haveHttpHeader('X-Requested-With', 'Codeception');
$I->amOnPage('test-headers.php');
// ...
$I->deleteHeader('X-Requested-With');
$I->amOnPage('some-other-page.php');

{% endhighlight %}


#### dontSee

Expand Down Expand Up @@ -1692,4 +1678,25 @@ $I->uncheckOption('#notify');
{% endhighlight %}
#### unsetHeader
* `param string` $name the name of the header to unset.
* `return void`
Unsets a HTTP header (that was originally added by [haveHttpHeader()](#haveHttpHeader)),
so that subsequent requests will not send it anymore.
Example:
{% highlight php %}
<?php
$I->haveHttpHeader('X-Requested-With', 'Codeception');
$I->amOnPage('test-headers.php');
// ...
$I->unsetHeader('X-Requested-With');
$I->amOnPage('some-other-page.php');
{% endhighlight %}
<p>&nbsp;</p><div class="alert alert-warning">Module reference is taken from the source code. <a href="https://github.com/Codeception/module-laminas/tree/master/src/Codeception/Module/Laminas.php">Help us to improve documentation. Edit module reference</a></div>
39 changes: 23 additions & 16 deletions docs/modules/Laravel.md
Original file line number Diff line number Diff line change
Expand Up @@ -513,24 +513,10 @@ $I->click(['link' => 'Login']);

#### deleteHeader

* `param string` $name the name of the header to delete.
@deprecated
* `param string` $name
* `return void`

Deletes the header with the passed name. Subsequent requests
will not have the deleted header in its request.

Example:
{% highlight php %}

<?php
$I->haveHttpHeader('X-Requested-With', 'Codeception');
$I->amOnPage('test-headers.php');
// ...
$I->deleteHeader('X-Requested-With');
$I->amOnPage('some-other-page.php');

{% endhighlight %}


#### disableEvents

Expand Down Expand Up @@ -2589,4 +2575,25 @@ $I->uncheckOption('#notify');
{% endhighlight %}
#### unsetHeader
* `param string` $name the name of the header to unset.
* `return void`
Unsets a HTTP header (that was originally added by [haveHttpHeader()](#haveHttpHeader)),
so that subsequent requests will not send it anymore.
Example:
{% highlight php %}
<?php
$I->haveHttpHeader('X-Requested-With', 'Codeception');
$I->amOnPage('test-headers.php');
// ...
$I->unsetHeader('X-Requested-With');
$I->amOnPage('some-other-page.php');
{% endhighlight %}
<p>&nbsp;</p><div class="alert alert-warning">Module reference is taken from the source code. <a href="https://github.com/Codeception/module-laravel/tree/master/src/Codeception/Module/Laravel.php">Help us to improve documentation. Edit module reference</a></div>
39 changes: 23 additions & 16 deletions docs/modules/Lumen.md
Original file line number Diff line number Diff line change
Expand Up @@ -330,24 +330,10 @@ $I->click(['link' => 'Login']);

#### deleteHeader

* `param string` $name the name of the header to delete.
@deprecated
* `param string` $name
* `return void`

Deletes the header with the passed name. Subsequent requests
will not have the deleted header in its request.

Example:
{% highlight php %}

<?php
$I->haveHttpHeader('X-Requested-With', 'Codeception');
$I->amOnPage('test-headers.php');
// ...
$I->deleteHeader('X-Requested-With');
$I->amOnPage('some-other-page.php');

{% endhighlight %}


#### dontSee

Expand Down Expand Up @@ -1978,4 +1964,25 @@ $I->uncheckOption('#notify');
{% endhighlight %}
#### unsetHeader
* `param string` $name the name of the header to unset.
* `return void`
Unsets a HTTP header (that was originally added by [haveHttpHeader()](#haveHttpHeader)),
so that subsequent requests will not send it anymore.
Example:
{% highlight php %}
<?php
$I->haveHttpHeader('X-Requested-With', 'Codeception');
$I->amOnPage('test-headers.php');
// ...
$I->unsetHeader('X-Requested-With');
$I->amOnPage('some-other-page.php');
{% endhighlight %}
<p>&nbsp;</p><div class="alert alert-warning">Module reference is taken from the source code. <a href="https://github.com/Codeception/module-lumen/tree/master/src/Codeception/Module/Lumen.php">Help us to improve documentation. Edit module reference</a></div>
39 changes: 23 additions & 16 deletions docs/modules/Mezzio.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,24 +274,10 @@ $I->click(['link' => 'Login']);

#### deleteHeader

* `param string` $name the name of the header to delete.
@deprecated
* `param string` $name
* `return void`

Deletes the header with the passed name. Subsequent requests
will not have the deleted header in its request.

Example:
{% highlight php %}

<?php
$I->haveHttpHeader('X-Requested-With', 'Codeception');
$I->amOnPage('test-headers.php');
// ...
$I->deleteHeader('X-Requested-With');
$I->amOnPage('some-other-page.php');

{% endhighlight %}


#### dontSee

Expand Down Expand Up @@ -1604,4 +1590,25 @@ $I->uncheckOption('#notify');
{% endhighlight %}
#### unsetHeader
* `param string` $name the name of the header to unset.
* `return void`
Unsets a HTTP header (that was originally added by [haveHttpHeader()](#haveHttpHeader)),
so that subsequent requests will not send it anymore.
Example:
{% highlight php %}
<?php
$I->haveHttpHeader('X-Requested-With', 'Codeception');
$I->amOnPage('test-headers.php');
// ...
$I->unsetHeader('X-Requested-With');
$I->amOnPage('some-other-page.php');
{% endhighlight %}
<p>&nbsp;</p><div class="alert alert-warning">Module reference is taken from the source code. <a href="https://github.com/Codeception/module-mezzio/tree/master/src/Codeception/Module/Mezzio.php">Help us to improve documentation. Edit module reference</a></div>
39 changes: 23 additions & 16 deletions docs/modules/PhpBrowser.md
Original file line number Diff line number Diff line change
Expand Up @@ -354,24 +354,10 @@ $I->click(['link' => 'Login']);

#### deleteHeader

* `param string` $name the name of the header to delete.
@deprecated
* `param string` $name
* `return void`

Deletes the header with the passed name. Subsequent requests
will not have the deleted header in its request.

Example:
{% highlight php %}

<?php
$I->haveHttpHeader('X-Requested-With', 'Codeception');
$I->amOnPage('test-headers.php');
// ...
$I->deleteHeader('X-Requested-With');
$I->amOnPage('some-other-page.php');

{% endhighlight %}


#### dontSee

Expand Down Expand Up @@ -1717,4 +1703,25 @@ $I->uncheckOption('#notify');
{% endhighlight %}
#### unsetHeader
* `param string` $name the name of the header to unset.
* `return void`
Unsets a HTTP header (that was originally added by [haveHttpHeader()](#haveHttpHeader)),
so that subsequent requests will not send it anymore.
Example:
{% highlight php %}
<?php
$I->haveHttpHeader('X-Requested-With', 'Codeception');
$I->amOnPage('test-headers.php');
// ...
$I->unsetHeader('X-Requested-With');
$I->amOnPage('some-other-page.php');
{% endhighlight %}
<p>&nbsp;</p><div class="alert alert-warning">Module reference is taken from the source code. <a href="https://github.com/Codeception/module-phpbrowser/tree/master/src/Codeception/Module/PhpBrowser.php">Help us to improve documentation. Edit module reference</a></div>
39 changes: 23 additions & 16 deletions docs/modules/Symfony.md
Original file line number Diff line number Diff line change
Expand Up @@ -578,24 +578,10 @@ $I->click(['link' => 'Login']);

#### deleteHeader

* `param string` $name the name of the header to delete.
@deprecated
* `param string` $name
* `return void`

Deletes the header with the passed name. Subsequent requests
will not have the deleted header in its request.

Example:
{% highlight php %}

<?php
$I->haveHttpHeader('X-Requested-With', 'Codeception');
$I->amOnPage('test-headers.php');
// ...
$I->deleteHeader('X-Requested-With');
$I->amOnPage('some-other-page.php');

{% endhighlight %}


#### dontSee

Expand Down Expand Up @@ -2846,4 +2832,25 @@ $I->uncheckOption('#notify');
Remove service $serviceName from the lists of persistent services.
#### unsetHeader
* `param string` $name the name of the header to unset.
* `return void`
Unsets a HTTP header (that was originally added by [haveHttpHeader()](#haveHttpHeader)),
so that subsequent requests will not send it anymore.
Example:
{% highlight php %}
<?php
$I->haveHttpHeader('X-Requested-With', 'Codeception');
$I->amOnPage('test-headers.php');
// ...
$I->unsetHeader('X-Requested-With');
$I->amOnPage('some-other-page.php');
{% endhighlight %}
<p>&nbsp;</p><div class="alert alert-warning">Module reference is taken from the source code. <a href="https://github.com/Codeception/module-symfony/tree/master/src/Codeception/Module/Symfony.php">Help us to improve documentation. Edit module reference</a></div>
39 changes: 23 additions & 16 deletions docs/modules/Yii2.md
Original file line number Diff line number Diff line change
Expand Up @@ -451,24 +451,10 @@ Creates the CSRF Cookie.

#### deleteHeader

* `param string` $name the name of the header to delete.
@deprecated
* `param string` $name
* `return void`

Deletes the header with the passed name. Subsequent requests
will not have the deleted header in its request.

Example:
{% highlight php %}

<?php
$I->haveHttpHeader('X-Requested-With', 'Codeception');
$I->amOnPage('test-headers.php');
// ...
$I->deleteHeader('X-Requested-With');
$I->amOnPage('some-other-page.php');

{% endhighlight %}


#### dontSee

Expand Down Expand Up @@ -2009,4 +1995,25 @@ $I->uncheckOption('#notify');
{% endhighlight %}
#### unsetHeader
* `param string` $name the name of the header to unset.
* `return void`
Unsets a HTTP header (that was originally added by [haveHttpHeader()](#haveHttpHeader)),
so that subsequent requests will not send it anymore.
Example:
{% highlight php %}
<?php
$I->haveHttpHeader('X-Requested-With', 'Codeception');
$I->amOnPage('test-headers.php');
// ...
$I->unsetHeader('X-Requested-With');
$I->amOnPage('some-other-page.php');
{% endhighlight %}
<p>&nbsp;</p><div class="alert alert-warning">Module reference is taken from the source code. <a href="https://github.com/Codeception/module-yii2/tree/master/src/Codeception/Module/Yii2.php">Help us to improve documentation. Edit module reference</a></div>

0 comments on commit 19f37fc

Please sign in to comment.