Loïc Hoguin
9f5a1803da
Add tests for direct Req access
2017-09-05 15:28:11 +02:00
Loïc Hoguin
4fd6e2f7cd
Accept sendfile tuple with 0 length in cowboy_req
...
This will result in no data being sent. It's simply easier to
do this than to have to handle 0 size cases in user code.
2017-09-04 20:48:07 +02:00
Loïc Hoguin
ec00e3d60e
Make cowboy_req:read_part return multipart headers as map
2017-06-09 16:57:11 +02:00
Loïc Hoguin
f3e5f3e410
Preliminary h2 flow control support
...
Existing tests pass. A number of things remain to be done.
Has only been tested with Gun so far. Feedback welcome!
2017-05-19 20:18:00 +02:00
Loïc Hoguin
9255cdf1d7
Change the type of bindings from a list to a map
...
Maps make more sense because the keys are unique.
2017-02-19 16:51:16 +01:00
Loïc Hoguin
61d66a4de2
Remove outdated todo comments from req_SUITE
2017-02-05 17:12:29 +01:00
Loïc Hoguin
3e05ab8f82
Add experimental cowboy_compress_h stream handler
...
Currently marked as experimental because it can't be tweaked
(just enabled/disabled) and because it is not documented yet.
2017-01-22 10:50:39 +01:00
Loïc Hoguin
e5a8088e68
Make the new cowboy_req tests more realistic
2017-01-04 19:45:35 +01:00
Johan Lövdahl
3f4e79d42f
Add functions for getting and setting response headers
2017-01-04 13:37:50 +01:00
Loïc Hoguin
43adacc760
Welcome to 2017
2017-01-02 19:36:36 +01:00
Loïc Hoguin
ed664345d7
Add a few more test cases for cowboy_req:match_qs
2017-01-02 14:56:20 +01:00
Loïc Hoguin
ae0dd61673
Add tests for responses and request body reading
...
This is a large commit. The cowboy_req interface has largely
changed, and will change a little more. It's possible that
some examples or tests have not been converted to the new
interface yet. The documentation has not yet been updated.
All of this will be fixed in smaller subsequent commits.
Gotta start somewhere...
2016-08-10 11:49:31 +02:00
Loïc Hoguin
63c7d05eb2
Add tests for cowboy_req: match_cookies and match_qs
2016-06-22 09:27:29 +02:00
Loïc Hoguin
19468d0503
Add cowboy_req:uri/1,2
...
Along with more cowboy_req tests.
This commit also removes cowboy_req:url/1 and cowboy_req:host_url/1
in favor of the much more powerful new set of functions.
2016-06-21 19:04:52 +02:00
Loïc Hoguin
d9cad866f2
Add initial req suite
2016-06-20 17:31:31 +02:00