Add http compatibility mode to the manpage. - geomyidae - a small C-based gophe… | |
git clone git://git.codemadness.org/geomyidae | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 1f99de32eae25260f0596aad2c33780a239ba999 | |
parent 28c6362fb2bcbe837e46883e60eb2e89efc59692 | |
Author: Christoph Lohmann <[email protected]> | |
Date: Sat, 22 Jul 2023 17:56:54 +0200 | |
Add http compatibility mode to the manpage. | |
Diffstat: | |
M geomyidae.8 | 12 ++++++++++++ | |
1 file changed, 12 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/geomyidae.8 b/geomyidae.8 | |
@@ -419,6 +419,18 @@ Selector: /some/v1/service/add/something?args=value | |
"/add/something" "/some/v1/service/add/something?args=value" is called | |
.Ed | |
. | |
+.Ss Http compatibility | |
+For maximum flexibility in case someone sends a HTTP request to gopher, | |
+geomyidae supports a special case of CGI. See this example: | |
+.Bd -literal -offset indent | |
+Client request: GET /some/path HTTP/1.1 | |
+-> /GET exists and is exectuable | |
+-> /GET "" "" $host $port "" "GET /some/path HTTP/1.1" is called | |
+.Ed | |
+ | |
+This allows for example simple scripts for icecast upload compatibility | |
+or handling transparent HTTP right next to gopher, getting TLS for free. | |
+. | |
.Ss Some CGI Examples | |
Note: these are a very simple examples with no fitness checks with respect | |
to safety/security. |