Skip to content

Commit f6b8bb4

Browse files
Marek Briegerweaverryan
Marek Brieger
authored andcommitted
Edited the section of http header Content-Type - added Internet Media Types as part of the Content-Type header and a link to wikipedia´s list of common media types - hope that´s useful.
1 parent 78df4a8 commit f6b8bb4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

book/http_fundamentals.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,10 @@ on Wikipedia's `List of HTTP status codes`_ article.
143143
Like the request, an HTTP response contains additional pieces of information
144144
known as HTTP headers. For example, one important HTTP response header is
145145
``Content-Type``. The body of the same resource could be returned in multiple
146-
different formats including HTML, XML, or JSON to name a few. The ``Content-Type``
147-
header tells the client which format is being returned.
146+
different formats like HTML, XML, or JSON and the ``Content-Type`` header uses
147+
Internet Media Types like ``text/html`` to tell the client which format is
148+
being returned. A list of common media types can be found on Wikipedia's
149+
`List of common media types`_ article.
148150

149151
Many other headers exist, some of which are very powerful. For example, certain
150152
headers can be used to create a powerful caching system.
@@ -537,6 +539,7 @@ sensible defaults. For more advanced users, the sky is the limit.
537539
.. _`Live HTTP Headers`: https://addons.mozilla.org/en-US/firefox/addon/3829/
538540
.. _`List of HTTP status codes`: http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
539541
.. _`List of HTTP header fields`: http://en.wikipedia.org/wiki/List_of_HTTP_header_fields
542+
.. _`List of common media types`: http://en.wikipedia.org/wiki/Internet_media_type#List_of_common_media_types
540543
.. _`HttpFoundation`: https://github.com/symfony/HttpFoundation
541544
.. _`Routing`: https://github.com/symfony/Routing
542545
.. _`Form`: https://github.com/symfony/Form

0 commit comments

Comments
 (0)