From 2ef59e49f8dde4692c5e20a9fa06d8de41256d0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Abdelkader=20Mart=C3=ADnez=20P=C3=A9rez?= Date: Wed, 22 May 2019 10:01:16 +0200 Subject: [PATCH] spec: Handlers table reformat. --- spec/README.md | 45 +++++++++++++++++++++++---------------------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/spec/README.md b/spec/README.md index 22ea6bc..bfcb113 100644 --- a/spec/README.md +++ b/spec/README.md @@ -325,30 +325,31 @@ Each handler is identified by a `handler_id` and provide access to the following keys: ``` -request All information related to the HTTP request. Read-Only -├──── method Used HTTP Method (GET, POST) -├──── path Complete URL path. -├──── match Previously matched URL path parts. -│ └──── .* -├──── param URL parameters (post ? symbol) -│ └──── .* -├──── header HTTP request headers -│ └──── .* -├──── cookie HTTP request cookie -│ └──── .* -├──── form form-encoding body data -│ └──── .* -├──── body HTTP request body -response All information related to the HTTP request. Write-Only -├──── status HTTP status code -├──── body Response body. Mutually exclusive with response/stream -├──── stream Chunk-encoded body. Streamed response. Mutually exclusive with response/body -├──── header HTTP response headers -└──── └──── .* +request All information related to the HTTP request. Read-Only +├──── method Used HTTP Method (GET, POST) +├──── path Complete URL path. +├──── match Previously matched URL path parts. +│ └──── +├──── param URL parameters (post ? symbol) +│ └──── +├──── header HTTP request headers +│ └──── +├──── cookie HTTP request cookie +│ └──── +├──── form form-encoding body data +│ └──── +└──── body HTTP request body + +response All information related to the HTTP request. Write-Only +├──── status HTTP status code +├──── body Response body. Mutually exclusive with response/stream +├──── stream Chunk-encoded body. Streamed response. Mutually exclusive with response/body +└──── header HTTP response headers + └──── ``` -**Note**: Parameters under `request` are read-only and, conversely, parameters -under `response` are write-only. +**Note**: Parameters under `request` are read-only and, conversely, parameters under +`response` are write-only. #### Get handler key