From a8b58d3213da52a028b5e1a488d8a8e9efce7e34 Mon Sep 17 00:00:00 2001 From: Kyle Fuller Date: Sat, 28 Mar 2015 20:17:31 +0000 Subject: [PATCH] [Specification] Minor refactoring --- Specification.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Specification.md b/Specification.md index 3b9a458..4a04f55 100644 --- a/Specification.md +++ b/Specification.md @@ -18,10 +18,17 @@ The full type of the application function is as follows: ([String:AnyObject]) -> (String, [(String, String)], String?) ``` +## Server + +The server or gateway invokes the applications function once for each request +from a client. + +## Details + ### Environment -- `REQUEST_METHOD` -- `PATH_INFO` +- `REQUEST_METHOD` (String) - The HTTP request method, such as “GET” or “POST”. +- `PATH_INFO` (String) - The HTTP Path. ### The Response @@ -37,7 +44,3 @@ The headers is an array of tuples containing the key and value for each HTTP hea The body must be a String or nil. -## Server - -The server or gateway invokes the applications function once for each request -from a client.