about summary refs log tree commit diff stats
path: root/src/loader/connecterror.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-09-19 00:55:49 +0200
committerbptato <nincsnevem662@gmail.com>2023-09-19 01:02:53 +0200
commit50932ee701f0cb9454b145dec775ada3670ea768 (patch)
treeb91aa01d713b7b04c33f04a62f946354365a6c02 /src/loader/connecterror.nim
parent8a826ba92b7c744a995a9593834d63acd6d040b3 (diff)
downloadchawan-50932ee701f0cb9454b145dec775ada3670ea768.tar.gz
loader: add FTP support
works, sort of

still needs some work:

* better dirlist, ideally make it look like file dirlist (or make
  file look like ftp dirlist. well, anyway, they should look the same)
* absolute paths? (for now you have to append an extra slash to the
  path beginning)
* ssh keys for sftp? (actually I haven't even tested sftp yet...)
Diffstat (limited to 'src/loader/connecterror.nim')
-rw-r--r--src/loader/connecterror.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/loader/connecterror.nim b/src/loader/connecterror.nim
index d2af5762..5fce5287 100644
--- a/src/loader/connecterror.nim
+++ b/src/loader/connecterror.nim
@@ -1,6 +1,7 @@
 import bindings/curl
 
 type ConnectErrorCode* = enum
+  ERROR_INVALID_METHOD = (-8, "invalid method")
   ERROR_INVALID_DATA_URL = (-7, "invalid data URL")
   ERROR_ABOUT_PAGE_NOT_FOUND = (-6, "about page not found")
   ERROR_FILE_NOT_FOUND = (-5, "file not found")