File tree Expand file tree Collapse file tree 7 files changed +161
-112
lines changed Expand file tree Collapse file tree 7 files changed +161
-112
lines changed Original file line number Diff line number Diff line change @@ -328,24 +328,10 @@ $I->click(['link' => 'Login']);
328
328
329
329
#### deleteHeader
330
330
331
- * `param string` $name the name of the header to delete.
331
+ @deprecated
332
+ * `param string` $name
332
333
* `return void`
333
334
334
- Deletes the header with the passed name. Subsequent requests
335
- will not have the deleted header in its request.
336
-
337
- Example:
338
- {% highlight php %}
339
-
340
- <? php
341
- $I-> haveHttpHeader('X-Requested-With', 'Codeception');
342
- $I->amOnPage('test-headers.php');
343
- // ...
344
- $I->deleteHeader('X-Requested-With');
345
- $I->amOnPage('some-other-page.php');
346
-
347
- {% endhighlight %}
348
-
349
335
350
336
#### dontSee
351
337
@@ -1692,4 +1678,25 @@ $I->uncheckOption('#notify');
1692
1678
1693
1679
{% endhighlight %}
1694
1680
1681
+
1682
+ #### unsetHeader
1683
+
1684
+ * `param string` $name the name of the header to unset.
1685
+ * `return void`
1686
+
1687
+ Unsets a HTTP header (that was originally added by [haveHttpHeader()](#haveHttpHeader)),
1688
+ so that subsequent requests will not send it anymore.
1689
+
1690
+ Example:
1691
+ {% highlight php %}
1692
+
1693
+ <?php
1694
+ $I->haveHttpHeader('X-Requested-With', 'Codeception');
1695
+ $I->amOnPage('test-headers.php');
1696
+ // ...
1697
+ $I->unsetHeader('X-Requested-With');
1698
+ $I->amOnPage('some-other-page.php');
1699
+
1700
+ {% endhighlight %}
1701
+
1695
1702
<p> </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>
Original file line number Diff line number Diff line change @@ -513,24 +513,10 @@ $I->click(['link' => 'Login']);
513
513
514
514
#### deleteHeader
515
515
516
- * `param string` $name the name of the header to delete.
516
+ @deprecated
517
+ * `param string` $name
517
518
* `return void`
518
519
519
- Deletes the header with the passed name. Subsequent requests
520
- will not have the deleted header in its request.
521
-
522
- Example:
523
- {% highlight php %}
524
-
525
- <? php
526
- $I-> haveHttpHeader('X-Requested-With', 'Codeception');
527
- $I->amOnPage('test-headers.php');
528
- // ...
529
- $I->deleteHeader('X-Requested-With');
530
- $I->amOnPage('some-other-page.php');
531
-
532
- {% endhighlight %}
533
-
534
520
535
521
#### disableEvents
536
522
@@ -2589,4 +2575,25 @@ $I->uncheckOption('#notify');
2589
2575
2590
2576
{% endhighlight %}
2591
2577
2578
+
2579
+ #### unsetHeader
2580
+
2581
+ * `param string` $name the name of the header to unset.
2582
+ * `return void`
2583
+
2584
+ Unsets a HTTP header (that was originally added by [haveHttpHeader()](#haveHttpHeader)),
2585
+ so that subsequent requests will not send it anymore.
2586
+
2587
+ Example:
2588
+ {% highlight php %}
2589
+
2590
+ <?php
2591
+ $I->haveHttpHeader('X-Requested-With', 'Codeception');
2592
+ $I->amOnPage('test-headers.php');
2593
+ // ...
2594
+ $I->unsetHeader('X-Requested-With');
2595
+ $I->amOnPage('some-other-page.php');
2596
+
2597
+ {% endhighlight %}
2598
+
2592
2599
<p> </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>
Original file line number Diff line number Diff line change @@ -330,24 +330,10 @@ $I->click(['link' => 'Login']);
330
330
331
331
#### deleteHeader
332
332
333
- * `param string` $name the name of the header to delete.
333
+ @deprecated
334
+ * `param string` $name
334
335
* `return void`
335
336
336
- Deletes the header with the passed name. Subsequent requests
337
- will not have the deleted header in its request.
338
-
339
- Example:
340
- {% highlight php %}
341
-
342
- <? php
343
- $I-> haveHttpHeader('X-Requested-With', 'Codeception');
344
- $I->amOnPage('test-headers.php');
345
- // ...
346
- $I->deleteHeader('X-Requested-With');
347
- $I->amOnPage('some-other-page.php');
348
-
349
- {% endhighlight %}
350
-
351
337
352
338
#### dontSee
353
339
@@ -1978,4 +1964,25 @@ $I->uncheckOption('#notify');
1978
1964
1979
1965
{% endhighlight %}
1980
1966
1967
+
1968
+ #### unsetHeader
1969
+
1970
+ * `param string` $name the name of the header to unset.
1971
+ * `return void`
1972
+
1973
+ Unsets a HTTP header (that was originally added by [haveHttpHeader()](#haveHttpHeader)),
1974
+ so that subsequent requests will not send it anymore.
1975
+
1976
+ Example:
1977
+ {% highlight php %}
1978
+
1979
+ <?php
1980
+ $I->haveHttpHeader('X-Requested-With', 'Codeception');
1981
+ $I->amOnPage('test-headers.php');
1982
+ // ...
1983
+ $I->unsetHeader('X-Requested-With');
1984
+ $I->amOnPage('some-other-page.php');
1985
+
1986
+ {% endhighlight %}
1987
+
1981
1988
<p> </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>
Original file line number Diff line number Diff line change @@ -274,24 +274,10 @@ $I->click(['link' => 'Login']);
274
274
275
275
#### deleteHeader
276
276
277
- * `param string` $name the name of the header to delete.
277
+ @deprecated
278
+ * `param string` $name
278
279
* `return void`
279
280
280
- Deletes the header with the passed name. Subsequent requests
281
- will not have the deleted header in its request.
282
-
283
- Example:
284
- {% highlight php %}
285
-
286
- <? php
287
- $I-> haveHttpHeader('X-Requested-With', 'Codeception');
288
- $I->amOnPage('test-headers.php');
289
- // ...
290
- $I->deleteHeader('X-Requested-With');
291
- $I->amOnPage('some-other-page.php');
292
-
293
- {% endhighlight %}
294
-
295
281
296
282
#### dontSee
297
283
@@ -1604,4 +1590,25 @@ $I->uncheckOption('#notify');
1604
1590
1605
1591
{% endhighlight %}
1606
1592
1593
+
1594
+ #### unsetHeader
1595
+
1596
+ * `param string` $name the name of the header to unset.
1597
+ * `return void`
1598
+
1599
+ Unsets a HTTP header (that was originally added by [haveHttpHeader()](#haveHttpHeader)),
1600
+ so that subsequent requests will not send it anymore.
1601
+
1602
+ Example:
1603
+ {% highlight php %}
1604
+
1605
+ <?php
1606
+ $I->haveHttpHeader('X-Requested-With', 'Codeception');
1607
+ $I->amOnPage('test-headers.php');
1608
+ // ...
1609
+ $I->unsetHeader('X-Requested-With');
1610
+ $I->amOnPage('some-other-page.php');
1611
+
1612
+ {% endhighlight %}
1613
+
1607
1614
<p> </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>
Original file line number Diff line number Diff line change @@ -354,24 +354,10 @@ $I->click(['link' => 'Login']);
354
354
355
355
#### deleteHeader
356
356
357
- * `param string` $name the name of the header to delete.
357
+ @deprecated
358
+ * `param string` $name
358
359
* `return void`
359
360
360
- Deletes the header with the passed name. Subsequent requests
361
- will not have the deleted header in its request.
362
-
363
- Example:
364
- {% highlight php %}
365
-
366
- <? php
367
- $I-> haveHttpHeader('X-Requested-With', 'Codeception');
368
- $I->amOnPage('test-headers.php');
369
- // ...
370
- $I->deleteHeader('X-Requested-With');
371
- $I->amOnPage('some-other-page.php');
372
-
373
- {% endhighlight %}
374
-
375
361
376
362
#### dontSee
377
363
@@ -1717,4 +1703,25 @@ $I->uncheckOption('#notify');
1717
1703
1718
1704
{% endhighlight %}
1719
1705
1706
+
1707
+ #### unsetHeader
1708
+
1709
+ * `param string` $name the name of the header to unset.
1710
+ * `return void`
1711
+
1712
+ Unsets a HTTP header (that was originally added by [haveHttpHeader()](#haveHttpHeader)),
1713
+ so that subsequent requests will not send it anymore.
1714
+
1715
+ Example:
1716
+ {% highlight php %}
1717
+
1718
+ <?php
1719
+ $I->haveHttpHeader('X-Requested-With', 'Codeception');
1720
+ $I->amOnPage('test-headers.php');
1721
+ // ...
1722
+ $I->unsetHeader('X-Requested-With');
1723
+ $I->amOnPage('some-other-page.php');
1724
+
1725
+ {% endhighlight %}
1726
+
1720
1727
<p> </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>
Original file line number Diff line number Diff line change @@ -578,24 +578,10 @@ $I->click(['link' => 'Login']);
578
578
579
579
#### deleteHeader
580
580
581
- * `param string` $name the name of the header to delete.
581
+ @deprecated
582
+ * `param string` $name
582
583
* `return void`
583
584
584
- Deletes the header with the passed name. Subsequent requests
585
- will not have the deleted header in its request.
586
-
587
- Example:
588
- {% highlight php %}
589
-
590
- <? php
591
- $I-> haveHttpHeader('X-Requested-With', 'Codeception');
592
- $I->amOnPage('test-headers.php');
593
- // ...
594
- $I->deleteHeader('X-Requested-With');
595
- $I->amOnPage('some-other-page.php');
596
-
597
- {% endhighlight %}
598
-
599
585
600
586
#### dontSee
601
587
@@ -2846,4 +2832,25 @@ $I->uncheckOption('#notify');
2846
2832
2847
2833
Remove service $serviceName from the lists of persistent services.
2848
2834
2835
+
2836
+ #### unsetHeader
2837
+
2838
+ * `param string` $name the name of the header to unset.
2839
+ * `return void`
2840
+
2841
+ Unsets a HTTP header (that was originally added by [haveHttpHeader()](#haveHttpHeader)),
2842
+ so that subsequent requests will not send it anymore.
2843
+
2844
+ Example:
2845
+ {% highlight php %}
2846
+
2847
+ <?php
2848
+ $I->haveHttpHeader('X-Requested-With', 'Codeception');
2849
+ $I->amOnPage('test-headers.php');
2850
+ // ...
2851
+ $I->unsetHeader('X-Requested-With');
2852
+ $I->amOnPage('some-other-page.php');
2853
+
2854
+ {% endhighlight %}
2855
+
2849
2856
<p> </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>
Original file line number Diff line number Diff line change @@ -451,24 +451,10 @@ Creates the CSRF Cookie.
451
451
452
452
#### deleteHeader
453
453
454
- * `param string` $name the name of the header to delete.
454
+ @deprecated
455
+ * `param string` $name
455
456
* `return void`
456
457
457
- Deletes the header with the passed name. Subsequent requests
458
- will not have the deleted header in its request.
459
-
460
- Example:
461
- {% highlight php %}
462
-
463
- <? php
464
- $I-> haveHttpHeader('X-Requested-With', 'Codeception');
465
- $I->amOnPage('test-headers.php');
466
- // ...
467
- $I->deleteHeader('X-Requested-With');
468
- $I->amOnPage('some-other-page.php');
469
-
470
- {% endhighlight %}
471
-
472
458
473
459
#### dontSee
474
460
@@ -2009,4 +1995,25 @@ $I->uncheckOption('#notify');
2009
1995
2010
1996
{% endhighlight %}
2011
1997
1998
+
1999
+ #### unsetHeader
2000
+
2001
+ * `param string` $name the name of the header to unset.
2002
+ * `return void`
2003
+
2004
+ Unsets a HTTP header (that was originally added by [haveHttpHeader()](#haveHttpHeader)),
2005
+ so that subsequent requests will not send it anymore.
2006
+
2007
+ Example:
2008
+ {% highlight php %}
2009
+
2010
+ <?php
2011
+ $I->haveHttpHeader('X-Requested-With', 'Codeception');
2012
+ $I->amOnPage('test-headers.php');
2013
+ // ...
2014
+ $I->unsetHeader('X-Requested-With');
2015
+ $I->amOnPage('some-other-page.php');
2016
+
2017
+ {% endhighlight %}
2018
+
2012
2019
<p> </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>
You can’t perform that action at this time.
0 commit comments