Skip to content

Commit b0ac56d

Browse files
committed
docs: add note to setting headers
1 parent 8778a7c commit b0ac56d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

user_guide_src/source/outgoing/response.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ which can be either a string or an array of values that will be combined correct
5757
Using these functions instead of using the native PHP functions allows you to ensure that no headers are sent
5858
prematurely, causing errors, and makes testing possible.
5959

60+
.. note:: This method just sets headers to the response instance. So, if you create
61+
and return another response instance (e.g., if you call :php:func:`redirect()`),
62+
the headers set here will not be sent automatically.
63+
6064
appendHeader()
6165
^^^^^^^^^^^^^^
6266

0 commit comments

Comments
 (0)