Skip to content

Commit f309d71

Browse files
committed
docs: fix headings level
1 parent b3bd87c commit f309d71

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

user_guide_src/source/incoming/incomingrequest.rst

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
#####################
12
IncomingRequest Class
2-
*********************
3+
#####################
34

45
The IncomingRequest class provides an object-oriented representation of an HTTP request from a client, like a browser.
56
It extends from, and has access to all the methods of the :doc:`Request </incoming/request>` and :doc:`Message </incoming/message>`
@@ -10,7 +11,7 @@ classes, in addition to the methods listed below.
1011
:depth: 2
1112

1213
Accessing the Request
13-
---------------------
14+
*********************
1415

1516
An instance of the request class already populated for you if the current class is a descendant of
1617
``CodeIgniter\Controller`` and can be accessed as a class property:
@@ -28,7 +29,7 @@ the controller, where you can save it as a class property:
2829
.. literalinclude:: incomingrequest/003.php
2930

3031
Determining Request Type
31-
------------------------
32+
************************
3233

3334
A request could be of several types, including an AJAX request or a request from the command line. This can
3435
be checked with the ``isAJAX()`` and ``isCLI()`` methods:
@@ -59,7 +60,7 @@ You can also check if the request was made through and HTTPS connection with the
5960
.. literalinclude:: incomingrequest/006.php
6061

6162
Retrieving Input
62-
----------------
63+
****************
6364

6465
You can retrieve input from ``$_SERVER``, ``$_GET``, ``$_POST``, and ``$_ENV`` through the Request object.
6566
The data is not automatically filtered and returns the raw input data as passed in the request.
@@ -151,7 +152,7 @@ All of the methods mentioned above support the filter type passed in as the seco
151152
exception of ``getJSON()``.
152153

153154
Retrieving Headers
154-
------------------
155+
******************
155156

156157
You can get access to any header that was sent with the request with the ``headers()`` method, which returns
157158
an array of all headers, with the key as the name of the header, and the value is an instance of
@@ -177,7 +178,7 @@ If you need the entire header, with the name and values in a single string, simp
177178
.. literalinclude:: incomingrequest/019.php
178179

179180
The Request URL
180-
---------------
181+
***************
181182

182183
You can retrieve a :doc:`URI </libraries/uri>` object that represents the current URI for this request through the
183184
``$request->getUri()`` method. You can cast this object as a string to get a full URL for the current request:
@@ -195,7 +196,7 @@ functions use, so this is a helpful way to "spoof" an incoming request for testi
195196
.. literalinclude:: incomingrequest/022.php
196197

197198
Uploaded Files
198-
--------------
199+
**************
199200

200201
Information about all uploaded files can be retrieved through ``$request->getFiles()``, which returns an array of
201202
``CodeIgniter\HTTP\Files\UploadedFile`` instance. This helps to ease the pain of working with uploaded files,
@@ -217,7 +218,7 @@ multi-file upload, based on the filename given in the HTML file input:
217218
.. note:: The files here correspond to ``$_FILES``. Even if a user just clicks submit button of a form and does not upload any file, the file will still exist. You can check that the file was actually uploaded by the ``isValid()`` method in UploadedFile. See :ref:`verify-a-file` for more details.
218219

219220
Content Negotiation
220-
-------------------
221+
*******************
221222

222223
You can easily negotiate content types with the request through the ``negotiate()`` method:
223224

@@ -226,7 +227,7 @@ You can easily negotiate content types with the request through the ``negotiate(
226227
See the :doc:`Content Negotiation </incoming/content_negotiation>` page for more details.
227228

228229
Class Reference
229-
===============
230+
***************
230231

231232
.. note:: In addition to the methods listed here, this class inherits the methods from the
232233
:doc:`Request Class </incoming/request>` and the :doc:`Message Class </incoming/message>`.

0 commit comments

Comments
 (0)