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: