From ad1d0e8b0714ac24723b5478766f44653688646f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Abdelkader=20Mart=C3=ADnez=20P=C3=A9rez?= Date: Wed, 20 Nov 2019 13:45:42 +0100 Subject: [PATCH] Denoting the samples more clearly --- docs/source/theory/resource_tree.rst | 30 ++++++++++++++-------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/source/theory/resource_tree.rst b/docs/source/theory/resource_tree.rst index 3200456..eed1d67 100644 --- a/docs/source/theory/resource_tree.rst +++ b/docs/source/theory/resource_tree.rst @@ -55,7 +55,7 @@ Resources The HTTP method of the incoming request. -Sample usage: +**Sample Usage** If the user runs: @@ -77,7 +77,7 @@ then, when handling the request: The ``Host`` header as defined in the HTTP/1.1 spec of the incoming request. -Sample usage: +**Sample Usage** If the user runs: @@ -98,7 +98,7 @@ then, when handling the request: Contains the path substring of the URL. -Sample usage: +**Sample Usage** If the user runs: @@ -118,7 +118,7 @@ then, when handling the request: Contains the part of the URL captured by the pattern ``name``. -Sample usage: +**Sample Usage** For a route defined like this: @@ -144,7 +144,7 @@ then, when handling the request: Contains the value of the URL parameter ``name`` -Sample usage: +**Sample Usage** If the user runs: @@ -165,7 +165,7 @@ then, when handling the request: Contains the value of the HTTP header ``name`` of the incoming request. -Sample usage: +**Sample Usage** If the user runs: @@ -186,7 +186,7 @@ then, when handling the request: Contains the value of the HTTP cookie ``name`` of the incoming request. -Sample usage: +**Sample Usage** If the user runs: @@ -206,7 +206,7 @@ then, when handling the request: Contains the value of the field ``name`` of the incoming request. -Sample usage: +**Sample Usage** If the user runs: @@ -227,7 +227,7 @@ then, when handling the request: Contains the name of the file uploaded through the incoming request. -Sample usage: +**Sample Usage** If the user runs: @@ -248,7 +248,7 @@ then, when handling the request: Contents of the file that is being uploaded in the incoming request. -Sample usage: +**Sample Usage** If the user runs: @@ -269,7 +269,7 @@ then, when handling the request: Raw contents of the incoming request HTTP body. -Sample usage: +**Sample Usage** If the user runs: @@ -290,7 +290,7 @@ then, when handling the request: Contains the status code given in the user response. -Sample usage: +**Sample Usage** If during the request handling: @@ -306,7 +306,7 @@ then the response will have the status code ``418 I am a Teapot``. Contains the value of the header ``name`` in the user response. -Sample usage: +**Sample Usage** If during the request handling: @@ -325,7 +325,7 @@ Contains the value of the cookie ``name`` that will be set to the user response. -Sample usage: +**Sample Usage** If during the request handling: @@ -342,7 +342,7 @@ following requests. Contains the value of the response HTTP body. -Sample usage: +**Sample Usage** .. code-block:: bash