diff options
Diffstat (limited to 'tests/stdlib')
-rw-r--r-- | tests/stdlib/thttpclient.nim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/stdlib/thttpclient.nim b/tests/stdlib/thttpclient.nim index b5daa963a..d0cf25b45 100644 --- a/tests/stdlib/thttpclient.nim +++ b/tests/stdlib/thttpclient.nim @@ -16,6 +16,12 @@ proc asyncTest() {.async.} = resp = await client.request("https://google.com/") doAssert(resp.code.is2xx or resp.code.is3xx) + client.close() + + # Proxy test + #client = newAsyncHttpClient(proxy = newProxy("http://51.254.106.76:80/")) + #var resp = await client.request("https://github.com") + #echo resp proc syncTest() = var client = newHttpClient() |