diff options
author | bptato <nincsnevem662@gmail.com> | 2024-09-28 17:56:45 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-09-28 17:56:45 +0200 |
commit | 1dea3e9fbe4a902db6325195df0d7a465f82cfc5 (patch) | |
tree | d400bcaa2fdf4c71a81919a45c0a58a345bbc8fc /src/loader | |
parent | 6a0e957e1f2c9f5bea0882efbf2e0494cd5074fa (diff) | |
download | chawan-1dea3e9fbe4a902db6325195df0d7a465f82cfc5.tar.gz |
gopher: do not depend on libcurl
I'm thinking of making libcurl entirely optional; let's start with the easiest part. I've added a SOCKS5 client for ALL_PROXY support; I know curl supported others too, but whatever.
Diffstat (limited to 'src/loader')
-rw-r--r-- | src/loader/connecterror.nim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/loader/connecterror.nim b/src/loader/connecterror.nim index 878bc8d0..1ee4e48b 100644 --- a/src/loader/connecterror.nim +++ b/src/loader/connecterror.nim @@ -25,6 +25,9 @@ type ConnectionError* = enum ceProxyRefusedToConnect = (6, "ProxyRefusedToConnect") ceFailedToResolveHost = (7, "FailedToResolveHost") ceFailedToResolveProxy = (8, "FailedToResolveProxy") + ceProxyAuthFail = (9, "ProxyAuthFail") + ceInvalidResponse = (10, "InvalidResponse") + ceProxyInvalidResponse = (11, "ProxyInvalidResponse") const ErrorMessages* = [ ceCGIOutputHandleNotFound: "request body output handle not found", @@ -53,6 +56,9 @@ const ErrorMessages* = [ ceProxyRefusedToConnect: "proxy refused to connect", ceFailedToResolveHost: "failed to resolve host", ceFailedToResolveProxy: "failed to resolve proxy", + ceProxyAuthFail: "proxy authentication failed", + ceInvalidResponse: "received an invalid response", + ceProxyInvalidResponse: "proxy returned an invalid response", ] converter toInt*(code: ConnectionError): int = |