diff options
author | Loïc Hoguin <[email protected]> | 2014-06-30 16:21:27 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2014-06-30 16:21:27 +0200 |
commit | bc3b122e8912c04512f0935dda7b70cae6d09ce1 (patch) | |
tree | 4d89d70e22b5e51b75225e8886eb743571351194 | |
parent | e40c2c33c5780efce581afdd9ddf8a50d24350e8 (diff) | |
download | cowboy-bc3b122e8912c04512f0935dda7b70cae6d09ce1.tar.gz cowboy-bc3b122e8912c04512f0935dda7b70cae6d09ce1.tar.bz2 cowboy-bc3b122e8912c04512f0935dda7b70cae6d09ce1.zip |
Forgot a todo in the ROADMAP
-rw-r--r-- | ROADMAP.md | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -33,8 +33,6 @@ All functions will return a single term, excluding the body reading functions `body/{1,2}`, `body_qs/{1,2}`, `part/{1,2}`, `part_body/{1,2}`. -%% @todo yeah qs and cookies too probably??? - Of the functions returning a single term, some of them will return a Req object. This includes the functions that already return Req: `compact/1`, `delete_resp_header/2`, `set_meta/3`, @@ -50,10 +48,16 @@ parsed header value, and crash on error. It will also not cache the parsed value anymore, except for headers that Cowboy requires, like the connection header. +It is unsure what will become of the `qs_val`, `qs_vals`, +`cookie` and `cookies` functions. The main idea at this point +is to replace them with a `parse_qs/2` and `parse_cookies/2` +that would return the parsed list, and let the user decide +how to access it. + ### init/terminate unification -The first argument of the `init/3` is too rarely used. It -will be removed. +The first argument of the `init/3` function is too rarely used. +It will be removed. The return value of the `init/2` function will become `{http, Req, State} | {loop, Req, State} | {Module, Req, State}` |