Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions user_guide_src/source/concepts/http.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ is an object-oriented representation of the HTTP request. It provides everything
$request->getHeader('host');
$request->getHeader('Content-Type');

$request->getMethod(); // GET, POST, PUT, etc
$request->getMethod(); // get, post, put, etc

The request class does a lot of work in the background for you, that you never need to worry about.
The `isAJAX()` and `isSecure()` methods check several different methods to determine the correct answer.
The ``isAJAX()`` and ``isSecure()`` methods check several different methods to determine the correct answer.

.. 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.

Expand Down