Broken project to implement a cross-protocol browser in textual
Diffstat (limited to 'protocol/about.py')
-rw-r--r--protocol/about.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/protocol/about.py b/protocol/about.py
new file mode 100644
index 0000000..cc308f9
--- /dev/null
+++ b/protocol/about.py
@@ -0,0 +1,10 @@
+class AboutProtocol():
+ def get(url):
+ page = url.split(':')[1]
+ if page == 'about':
+ return ('text/gemini', [
+ '=>about:about\n',
+ '=>about:blank\n',
+ ])
+ elif page == 'blank':
+ return ('text/plain',[])