Skip to content

Commit 308d1b7

Browse files
Improved documentation of haveHttpHeader and deleteHeader
Minor wording improvements. Question: `deleteHeader()` can only delete headers that were set by `haveHttpHeader()`? (Or other headers too?) So we could mention this and link to it?
1 parent 63d09a1 commit 308d1b7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Codeception/Module/REST.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ protected function getRunningClient()
168168
}
169169

170170
/**
171-
* Sets HTTP header valid for all next requests. Use `deleteHeader` to unset it
171+
* Sets a HTTP header to be used for all subsequent requests. Use [`deleteHeader`](#deleteHeader) to unset it.
172172
*
173173
* ```php
174174
* <?php
@@ -188,8 +188,7 @@ public function haveHttpHeader($name, $value)
188188
}
189189

190190
/**
191-
* Deletes the header with the passed name. Subsequent requests
192-
* will not have the deleted header in its request.
191+
* Deletes a HTTP header, so that subsequent requests will not send it anymore.
193192
*
194193
* Example:
195194
* ```php

0 commit comments

Comments
 (0)