diff --git a/README.md b/README.md index 6211d56..9020d44 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,28 @@ -# fhttpy - +
modules/settings.py
, and http-specific settings in modules/http/settings.py
.
+
+env
, which contains low-level, as well as high-level information about the request. Open http://127.0.0.1/test/
to see what they're set to. You can also add query parameters, like this: http://127.0.0.1/test/?Key1=Value1&Key2=Value2&etc...
, these are digested as well. Edit index/test/index.pyp
to see how the test page works.
+
+env
:Key | Description | +
---|---|
self | A reference to the thread the script belongs to. |
requestTime | The time when the request was received, as a Unix timestamp. |
header | The header text the client sent to the server, including the HTTP request line. |
protocolHeaderList | Request line digested into a list. |
headerList | Headers digested into a dictionary. |
cmd | Method requested (get , post , etc). |
path | Path extracted from headerList . |
args | Query parameters digested into a dictionary. |
pathFixed | Path, stripped of errors/malice. |
lPath | Local path, relative to index folder (based on pathFixed ). |
fPath | Full path (based on pathFixed ). |
fileExt | File extension (based on pathFixed ). |
fPathDir | The file's folder (based on pathFixed ). |
requestTimeFormatted | Request time formatted for HTML (based on requestTime ). |
handler | The function handling the request. |
htaccessPropagate | Whether to read further htpyaccess files in sub-directories. |