Skip to content

Commit d7cbe6f

Browse files
committed
docs: make it more readable
1 parent cc15903 commit d7cbe6f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

user_guide_src/source/outgoing/response.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,16 @@ Setting Headers
4444
---------------
4545

4646
Often, you will need to set headers to be set for the response. The Response class makes this very simple to do,
47-
with the ``setHeader()`` method. The first parameter is the name of the header. The second parameter is the value,
47+
with the ``setHeader()`` method.
48+
49+
The first parameter is the name of the header. The second parameter is the value,
4850
which can be either a string or an array of values that will be combined correctly when sent to the client.
49-
Using these functions instead of using the native PHP functions allows you to ensure that no headers are sent
50-
prematurely, causing errors, and makes testing possible.
5151

5252
.. literalinclude:: response/004.php
5353

54+
Using these functions instead of using the native PHP functions allows you to ensure that no headers are sent
55+
prematurely, causing errors, and makes testing possible.
56+
5457
If the header exists and can have more than one value, you may use the ``appendHeader()`` and ``prependHeader()``
5558
methods to add the value to the end or beginning of the values list, respectively. The first parameter is the name
5659
of the header, while the second is the value to append or prepend.

0 commit comments

Comments
 (0)