0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00

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!
This commit is contained in:
Loïc Hoguin 2017-05-19 20:18:00 +02:00
parent 304e3efbf8
commit f3e5f3e410
No known key found for this signature in database
GPG key ID: 71366FF21851DF03
5 changed files with 232 additions and 64 deletions

View file

@ -49,10 +49,10 @@ init_dispatch(Config) ->
{"/resp/:key[/:arg]", resp_h, []},
{"/multipart[/:key]", multipart_h, []},
{"/args/:key/:arg[/:default]", echo_h, []},
{"/crash/:key/period", echo_h, #{length => infinity, period => 1000, crash => true}},
{"/crash/:key/period", echo_h, #{length => 999999999, period => 1000, crash => true}},
{"/no-opts/:key", echo_h, #{crash => true}},
{"/opts/:key/length", echo_h, #{length => 1000}},
{"/opts/:key/period", echo_h, #{length => infinity, period => 1000}},
{"/opts/:key/period", echo_h, #{length => 999999999, period => 1000}},
{"/opts/:key/timeout", echo_h, #{timeout => 1000, crash => true}},
{"/full/:key", echo_h, []},
{"/no/:key", echo_h, []},