diff options
author | bptato <nincsnevem662@gmail.com> | 2023-05-21 13:28:33 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-05-21 13:28:33 +0200 |
commit | d09319640c4b1e24b937d1fc37a3f8b82052e612 (patch) | |
tree | 45631e7ed2c23ce4a4217bfe2037cba2ba873231 /src/ips | |
parent | 7c612d65be345fd1ef156f95bb033d9bbf8aece8 (diff) | |
download | chawan-d09319640c4b1e24b937d1fc37a3f8b82052e612.tar.gz |
Rewrite new Request binding
Still far from perfect, but now at least it has a bit more to do with what the standard mandates.
Diffstat (limited to 'src/ips')
-rw-r--r-- | src/ips/forkserver.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ips/forkserver.nim b/src/ips/forkserver.nim index e7ddf1c0..c6acefc6 100644 --- a/src/ips/forkserver.nim +++ b/src/ips/forkserver.nim @@ -32,7 +32,9 @@ type ostream: Stream children: seq[(Pid, Pid)] -proc newFileLoader*(forkserver: ForkServer, defaultHeaders: HeaderList = nil, filter = newURLFilter(default = true), cookiejar: CookieJar = nil): FileLoader = +proc newFileLoader*(forkserver: ForkServer, defaultHeaders: Headers = nil, + filter = newURLFilter(default = true), + cookiejar: CookieJar = nil): FileLoader = new(result) forkserver.ostream.swrite(FORK_LOADER) var defaultHeaders = defaultHeaders |