diff options
| author | 2023-03-26 13:59:29 -0400 | |
|---|---|---|
| committer | 2023-03-26 13:59:29 -0400 | |
| commit | 25fa6183f2a386e85d7caae192d0a6944565ddb8 (patch) | |
| tree | 44f49e515411b12bf987442903d2a0519ea76379 | |
| parent | native: implement getinfo on enums and bitmasks (diff) | |
janet: also pass handle
you can use that to "continue" a session by passing it further,
or to get extra info
| -rw-r--r-- | jurl/init.janet | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/jurl/init.janet b/jurl/init.janet index da81205..cbd95e2 100644 --- a/jurl/init.janet +++ b/jurl/init.janet @@ -109,6 +109,7 @@ # cookies are complicated for many reasons # combine :cookielist and (:headers :set-cookie) to handle yourself (freeze {:body (if (function? stream) :unavail res-body) + :handle handle :headers (text/parse-headers res-hdr) :status (handle :response-code)})) @@ -132,5 +133,6 @@ # response format (comment {:body (or buffer :unavail) # if stream = true + :handle handle :headers dictionary :status 200}) |
