diff --git a/components/http_foundation.rst b/components/http_foundation.rst index d3f3df90781..d40eff97eba 100644 --- a/components/http_foundation.rst +++ b/components/http_foundation.rst @@ -290,6 +290,21 @@ by using the following methods: :method:`Symfony\\Component\\HttpFoundation\\Request::getAcceptableContentTypes` Returns the list of accepted content types ordered by descending quality. +:method:`Symfony\\Component\\HttpFoundation\\Request::getAcceptableFormats` + Returns the list of accepted client formats associated with the request. + +Note that +:method:`Symfony\\Component\\HttpFoundation\\Request::getAcceptableFormats` +will use the data from +:method:`Symfony\\Component\\HttpFoundation\\Request::getAcceptableContentTypes` +and return the client acceptable formats:: + + $request->getAcceptableContentTypes(); + // returns ['text/html', 'application/xhtml+xml', 'application/xml', '*/*'] + + $request->getAcceptableFormats(); + // returns ['html', 'xml'] + :method:`Symfony\\Component\\HttpFoundation\\Request::getLanguages` Returns the list of accepted languages ordered by descending quality. pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy