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
+18 -16
+18 -16
View File
@@ -325,22 +325,24 @@ 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
│
└─ response All information related to the HTTP request. Write-Only
├──── status HTTP status code ├──── status HTTP status code
├──── body Response body. Mutually exclusive with response/stream ├──── body Response body. Mutually exclusive with response/stream
├──── stream Chunk-encoded body. Streamed response. Mutually exclusive with response/body ├──── stream Chunk-encoded body. Streamed response. Mutually exclusive with response/body