From c195894db9c57fce31072e871ba71c3412b3a072 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 14 Oct 2018 06:57:39 -0400 Subject: [PATCH] yaml --- docs/source/quickstart.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/source/quickstart.rst b/docs/source/quickstart.rst index 4c46d3f..911147e 100644 --- a/docs/source/quickstart.rst +++ b/docs/source/quickstart.rst @@ -60,6 +60,8 @@ If you want your API to send back JSON, simply set the ``resp.media`` property t A ``GET`` request to ``/hello/guido/json`` will result in a response of ``{'hello': 'guido'}``. +If the client requests YAML instead (with a header of ``Accept: application/x-yaml``), YAML will be sent. + Receiving Data & Background Tasks ---------------------------------