spec: Handlers keys tree reformat.

Co-authored-by: pancho horrillo <pedrofelipe.horrillo@bbva.com>
This commit is contained in:
Roberto Abdelkader Martínez Pérezandpancho horrillo committed 2019-05-22 10:16:03 +02:00
1 parent 2ef59e49f8
commit 7cee2fac83
1 file changed
+23 -21
+23 -21
View File
@@ -325,27 +325,29 @@ Each handler is identified by a `handler_id` and provide access to the
following keys: following keys:
``` ```
request All information related to the HTTP request. Read-Only / The root of the keys tree
├──── method Used HTTP Method (GET, POST) │
├──── path Complete URL path. ├─ request All information related to the HTTP request. Read-Only
├──── match Previously matched URL path parts. │ ├──── method Used HTTP Method (GET, POST)
│ └──── <key> │ ├──── path Complete URL path.
├──── param URL parameters (post ? symbol) │ ├──── match Previously matched URL path parts.
│ └──── <key> │ │ └──── <key>
├──── header HTTP request headers │ ├──── param URL parameters (post ? symbol)
│ └──── <key> │ │ └──── <key>
├──── cookie HTTP request cookie │ ├──── header HTTP request headers
│ └──── <key> │ │ └──── <key>
├──── form form-encoding body data │ ├──── cookie HTTP request cookie
│ └──── <key> │ │ └──── <key>
└──── body HTTP request body │ ├──── form form-encoding body data
│ │ └──── <key>
response All information related to the HTTP request. Write-Only │ └──── body HTTP request body
├──── status HTTP status code │
├──── body Response body. Mutually exclusive with response/stream └─ response All information related to the HTTP request. Write-Only
├──── stream Chunk-encoded body. Streamed response. Mutually exclusive with response/body ├──── status HTTP status code
└──── header HTTP response headers ├──── body Response body. Mutually exclusive with response/stream
└──── <key> ├──── stream Chunk-encoded body. Streamed response. Mutually exclusive with response/body
└──── header HTTP response headers
└──── <key>
``` ```
**Note**: Parameters under `request` are read-only and, conversely, parameters under **Note**: Parameters under `request` are read-only and, conversely, parameters under