You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: user_guide_src/source/concepts/http.rst
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,8 +99,6 @@ The `isAJAX()` and `isSecure()` methods check several different methods to deter
99
99
100
100
.. note:: The ``isAJAX()`` method depends on the ``X-Requested-With`` header, which in some cases is not sent by default in XHR requests via JavaScript (i.e. fetch). See the :doc:`AJAX Requests </general/ajax>` section on how to avoid this problem.
101
101
102
-
::
103
-
104
102
CodeIgniter also provides a :doc:`Response class </outgoing/response>` that is an object-oriented representation
105
103
of the HTTP response. This gives you an easy and powerful way to construct your response to the client::
Copy file name to clipboardExpand all lines: user_guide_src/source/incoming/filters.rst
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -168,8 +168,6 @@ would apply to every AJAX request.
168
168
169
169
.. note:: The AJAX requests depends on the ``X-Requested-With`` header, which in some cases is not sent by default in XHR requests via JavaScript (i.e. fetch). See the :doc:`AJAX Requests </general/ajax>` section on how to avoid this problem.
Copy file name to clipboardExpand all lines: user_guide_src/source/incoming/incomingrequest.rst
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ get a copy of it through the :doc:`Services class </concepts/services>`::
38
38
It's preferable, though, to pass the request in as a dependency if the class is anything other than
39
39
the controller, where you can save it as a class property::
40
40
41
-
<?php
41
+
<?php
42
42
use CodeIgniter\HTTP\RequestInterface;
43
43
44
44
class SomeClass
@@ -73,8 +73,6 @@ be checked with the ``isAJAX()`` and ``isCLI()`` methods::
73
73
74
74
.. note:: The ``isAJAX()`` method depends on the ``X-Requested-With`` header, which in some cases is not sent by default in XHR requests via JavaScript (i.e. fetch). See the :doc:`AJAX Requests </general/ajax>` section on how to avoid this problem.
75
75
76
-
::
77
-
78
76
You can check the HTTP method that this request represents with the ``method()`` method::
79
77
80
78
// Returns 'post'
@@ -261,7 +259,7 @@ You can retrieve a single file uploaded on its own, based on the filename given
261
259
262
260
$file = $request->getFile('uploadedfile');
263
261
264
-
You can retrieve an array of same-named files uploaded as part of a
262
+
You can retrieve an array of same-named files uploaded as part of a
265
263
multi-file upload, based on the filename given in the HTML file input::
0 commit comments