mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Forgot a todo in the ROADMAP
This commit is contained in:
parent
e40c2c33c5
commit
bc3b122e89
1 changed files with 8 additions and 4 deletions
12
ROADMAP.md
12
ROADMAP.md
|
@ -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}`,
|
reading functions `body/{1,2}`, `body_qs/{1,2}`, `part/{1,2}`,
|
||||||
`part_body/{1,2}`.
|
`part_body/{1,2}`.
|
||||||
|
|
||||||
%% @todo yeah qs and cookies too probably???
|
|
||||||
|
|
||||||
Of the functions returning a single term, some of them will
|
Of the functions returning a single term, some of them will
|
||||||
return a Req object. This includes the functions that already
|
return a Req object. This includes the functions that already
|
||||||
return Req: `compact/1`, `delete_resp_header/2`, `set_meta/3`,
|
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
|
cache the parsed value anymore, except for headers that Cowboy
|
||||||
requires, like the connection header.
|
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
|
### init/terminate unification
|
||||||
|
|
||||||
The first argument of the `init/3` is too rarely used. It
|
The first argument of the `init/3` function is too rarely used.
|
||||||
will be removed.
|
It will be removed.
|
||||||
|
|
||||||
The return value of the `init/2` function will become
|
The return value of the `init/2` function will become
|
||||||
`{http, Req, State} | {loop, Req, State} | {Module, Req, State}`
|
`{http, Req, State} | {loop, Req, State} | {Module, Req, State}`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue