about summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-01-03 14:40:21 +0100
committerbptato <nincsnevem662@gmail.com>2024-01-03 14:43:47 +0100
commitb512b00d161317422127d633b1ab8ad4412ebfc9 (patch)
tree3a20b28fd08a8d76a37dd9d6426e2cdbfaf850ee /doc
parentae3c255a6a03224464cdc5f24eff8428147a7e7d (diff)
downloadchawan-b512b00d161317422127d633b1ab8ad4412ebfc9.tar.gz
Add spartan support
why not
Diffstat (limited to 'doc')
-rw-r--r--doc/protocols.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/protocols.md b/doc/protocols.md
index 5da06ad7..e4982944 100644
--- a/doc/protocols.md
+++ b/doc/protocols.md
@@ -17,6 +17,7 @@ this document.
 * [Gopher](#gopher)
 * [Gemini](#gemini)
 * [Finger](#finger)
+* [Spartan](#spartan)
 * [Local schemes: file:, about:, data:, cgi-bin:](#local-schemes-file-about-data-cgi-bin)
 * [Custom protocols](#custom-protocols)
 
@@ -100,6 +101,17 @@ As such, it will not work if `curl` is not installed.
 Aspiring protocol adapter writers are encouraged to study cha-finger for
 a simple example of how a custom protocol handler could be written.
 
+## Spartan
+
+Spartan is a protocol similar to Gemini, but without TLS. It is supported
+through the `adapter/protocol/spartan` shell script, which uses `nc` to make
+requests.
+
+Spartan has the very strange property of extending gemtext with a
+protocol-specific line type. This is sort of supported through a sed filter
+for gemtext outputs in the CGI script (in other words, no modification to
+gmi2html was done to support this).
+
 ## Local schemes: file:, about:, data:, cgi-bin:
 
 While these are not necessarily *protocols*, they are implemented similarly