Skip to content

Commit

Permalink
Update request-response.rst
Browse files Browse the repository at this point in the history
Closes #7833
  • Loading branch information
ADmad authored Apr 4, 2024
1 parent e5b2f5e commit 645e629
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions en/controllers/request-response.rst
Original file line number Diff line number Diff line change
Expand Up @@ -394,10 +394,10 @@ There are several built-in detectors that you can use:
X-Requested-With = XMLHttpRequest.
* ``is('ssl')`` Check to see whether the request is via SSL.
* ``is('flash')`` Check to see whether the request has a User-Agent of Flash.
* ``is('json')`` Check to see whether the request has 'json' extension and
accept 'application/json' mimetype.
* ``is('xml')`` Check to see whether the request has 'xml' extension and accept
'application/xml' or 'text/xml' mimetype.
* ``is('json')`` Check to see whether the request URL has 'json' extension or the
`Accept` header is set to 'application/json'.
* ``is('xml')`` Check to see whether the request URL has 'xml' extension or the `Accept` header is set to
'application/xml' or 'text/xml'.

``ServerRequest`` also includes methods like
:php:meth:`Cake\\Http\\ServerRequest::domain()`,
Expand Down

0 comments on commit 645e629

Please sign in to comment.