From 49a3dea0910663b30a690b54a16e86555d635b5f Mon Sep 17 00:00:00 2001 From: pancho horrillo Date: Tue, 28 May 2019 14:40:26 +0200 Subject: [PATCH] spec: render table with native github-flavoured markdown MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: César Gallego Rodríguez --- spec/README.md | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/spec/README.md b/spec/README.md index 6996198..c767e1b 100644 --- a/spec/README.md +++ b/spec/README.md @@ -20,23 +20,11 @@ history. There are some concepts in HTTP and the shell that **resemble each other**. -``` - +------------------------+-------------------------+ - | HTTP | Shell | - +--------------+------------------------+-------------------------+ - | Input | POST form-encoding | Command line parameters | - | Parameters | GET parameters | Environment variables | - | | Headers | | - | | Serialized body (JSON) | | - +--------------+------------------------+-------------------------+ - | Data Streams | Response/Request Body | stdin/stdout/stderr | - | | Websocket | Input/Output files | - | | Uploaded files | | - +--------------+------------------------+-------------------------+ - | Control | Status codes | Signals | - | | HTTP Methods | Exit Codes | - +--------------+------------------------+-------------------------+ -``` + | | HTTP | Shell | + |------------------------|--------------------------------------------------------------------------------|----------------------------------------------------| + | Input
Parameters | POST form-encoding
Get parameters
Headers
Serialized body (JSON) | Command line parameters
Environment variables | + | Data Streams | Response/Request Body
Websocket
Uploaded files | stdin/stdout/stderr
Input/Output files | + | Control | Status codes
HTTP Methods | Signals
Exit Codes | Any tool designed to give an HTTP interface to an existing shell command **must map concepts from both domains**. For example: