freenode/#shirakumo - IRC Chatlog
Search
7:58:48
hjudt
i have implemented some tests for get/post, need to clean up then i'll send you a pull request. next, i was thinking about cookies, but i lack experience with cookies.
8:00:06
hjudt
and cookies can have attributes, which i am not parsing in i-woo (and i don't know whether it would cause a server error because of that)
8:00:36
Colleen
Class radiance-core:cookie https://shirakumo.github.io/radiance#CLASS%20RADIANCE-CORE%3ACOOKIE
8:00:42
hjudt
there are different rfcs for cookies, some obsolete. do you know where i can get a cookies jar?
8:07:18
hjudt
ok, i will look at woo, but i haven't seen anything like it, and there are no cookies returned like in hunchentoot
11:35:06
hjudt
i've leave the i-woo cookies implementation as it is. hunchentoot does something similar. atm i do not use any cookies at all so i don't want to spend any more time on this.
11:35:25
Colleen
github.com/edicl/hunchentoo... Website (HTML), Title: hunchentoot/util.lisp at master · edicl/hunchentoot · GitHub
13:16:50
hjudt
about json: is it ok to check for application/json and do the decoding ub8 => string?
13:17:47
Shinmera
The server should not decode anything or read the stream in any way if the content type is not application/x-www-form-data or multipart/form-data
13:18:38
Shinmera
In your user application you can then pass the ub8 stream from the request to a json decoder of your choice.
13:19:33
hjudt
any reason why you used (starts-with "multipart/form-data" type) instead of (string=...)?
13:25:57
Colleen
github.com/Shirakumo/radian... Website (HTML), Title: radiance/documentation.lisp at master · Shirakumo/radiance · GitHub
13:36:45
hjudt
if the post request comes with application/x-www-form-urlencoded, http-body will decode it with quri:url-decode-params, resulting in an alist instead of a hash-table.