Denoting the samples more clearly
This commit is contained in:
@@ -55,7 +55,7 @@ Resources
|
|||||||
|
|
||||||
The HTTP method of the incoming request.
|
The HTTP method of the incoming request.
|
||||||
|
|
||||||
Sample usage:
|
**Sample Usage**
|
||||||
|
|
||||||
If the user runs:
|
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
|
The ``Host`` header as defined in the HTTP/1.1 spec of the incoming
|
||||||
request.
|
request.
|
||||||
|
|
||||||
Sample usage:
|
**Sample Usage**
|
||||||
|
|
||||||
If the user runs:
|
If the user runs:
|
||||||
|
|
||||||
@@ -98,7 +98,7 @@ then, when handling the request:
|
|||||||
|
|
||||||
Contains the path substring of the URL.
|
Contains the path substring of the URL.
|
||||||
|
|
||||||
Sample usage:
|
**Sample Usage**
|
||||||
|
|
||||||
If the user runs:
|
If the user runs:
|
||||||
|
|
||||||
@@ -118,7 +118,7 @@ then, when handling the request:
|
|||||||
|
|
||||||
Contains the part of the URL captured by the pattern ``name``.
|
Contains the part of the URL captured by the pattern ``name``.
|
||||||
|
|
||||||
Sample usage:
|
**Sample Usage**
|
||||||
|
|
||||||
For a route defined like this:
|
For a route defined like this:
|
||||||
|
|
||||||
@@ -144,7 +144,7 @@ then, when handling the request:
|
|||||||
|
|
||||||
Contains the value of the URL parameter ``name``
|
Contains the value of the URL parameter ``name``
|
||||||
|
|
||||||
Sample usage:
|
**Sample Usage**
|
||||||
|
|
||||||
If the user runs:
|
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.
|
Contains the value of the HTTP header ``name`` of the incoming request.
|
||||||
|
|
||||||
Sample usage:
|
**Sample Usage**
|
||||||
|
|
||||||
If the user runs:
|
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.
|
Contains the value of the HTTP cookie ``name`` of the incoming request.
|
||||||
|
|
||||||
Sample usage:
|
**Sample Usage**
|
||||||
|
|
||||||
If the user runs:
|
If the user runs:
|
||||||
|
|
||||||
@@ -206,7 +206,7 @@ then, when handling the request:
|
|||||||
|
|
||||||
Contains the value of the field ``name`` of the incoming request.
|
Contains the value of the field ``name`` of the incoming request.
|
||||||
|
|
||||||
Sample usage:
|
**Sample Usage**
|
||||||
|
|
||||||
If the user runs:
|
If the user runs:
|
||||||
|
|
||||||
@@ -227,7 +227,7 @@ then, when handling the request:
|
|||||||
|
|
||||||
Contains the name of the file uploaded through the incoming request.
|
Contains the name of the file uploaded through the incoming request.
|
||||||
|
|
||||||
Sample usage:
|
**Sample Usage**
|
||||||
|
|
||||||
If the user runs:
|
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.
|
Contents of the file that is being uploaded in the incoming request.
|
||||||
|
|
||||||
Sample usage:
|
**Sample Usage**
|
||||||
|
|
||||||
If the user runs:
|
If the user runs:
|
||||||
|
|
||||||
@@ -269,7 +269,7 @@ then, when handling the request:
|
|||||||
|
|
||||||
Raw contents of the incoming request HTTP body.
|
Raw contents of the incoming request HTTP body.
|
||||||
|
|
||||||
Sample usage:
|
**Sample Usage**
|
||||||
|
|
||||||
If the user runs:
|
If the user runs:
|
||||||
|
|
||||||
@@ -290,7 +290,7 @@ then, when handling the request:
|
|||||||
|
|
||||||
Contains the status code given in the user response.
|
Contains the status code given in the user response.
|
||||||
|
|
||||||
Sample usage:
|
**Sample Usage**
|
||||||
|
|
||||||
If during the request handling:
|
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.
|
Contains the value of the header ``name`` in the user response.
|
||||||
|
|
||||||
Sample usage:
|
**Sample Usage**
|
||||||
|
|
||||||
If during the request handling:
|
If during the request handling:
|
||||||
|
|
||||||
@@ -325,7 +325,7 @@ Contains the value of the cookie ``name`` that will be set to the user
|
|||||||
response.
|
response.
|
||||||
|
|
||||||
|
|
||||||
Sample usage:
|
**Sample Usage**
|
||||||
|
|
||||||
If during the request handling:
|
If during the request handling:
|
||||||
|
|
||||||
@@ -342,7 +342,7 @@ following requests.
|
|||||||
|
|
||||||
Contains the value of the response HTTP body.
|
Contains the value of the response HTTP body.
|
||||||
|
|
||||||
Sample usage:
|
**Sample Usage**
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user