diff options
author | Loïc Hoguin <[email protected]> | 2019-10-02 20:30:32 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2019-10-02 20:30:32 +0200 |
commit | eaa052616f7c85d4daf4817ceecd5f87fecfc8f4 (patch) | |
tree | 1865efbc9551631607435119839e8af0dc779a8b /test/req_SUITE.erl | |
parent | 20660d7566b63977e80f694724fee890d875ec1b (diff) | |
download | cowboy-eaa052616f7c85d4daf4817ceecd5f87fecfc8f4.tar.gz cowboy-eaa052616f7c85d4daf4817ceecd5f87fecfc8f4.tar.bz2 cowboy-eaa052616f7c85d4daf4817ceecd5f87fecfc8f4.zip |
Ensure we can stream the response body from any process
Diffstat (limited to 'test/req_SUITE.erl')
-rw-r--r-- | test/req_SUITE.erl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/req_SUITE.erl b/test/req_SUITE.erl index 72cc0ed..2cc8de4 100644 --- a/test/req_SUITE.erl +++ b/test/req_SUITE.erl @@ -942,6 +942,11 @@ stream_body_sendfile_fin(Config) -> {200, _, ExpectedBody} = do_get("/resp/stream_body/sendfile_fin", Config), ok. +stream_body_spawn(Config) -> + doc("Confirm we can use cowboy_req:stream_body/3 from another process."), + {200, _, <<"Hello world!">>} = do_get("/resp/stream_body/spawn", Config), + ok. + stream_body_content_length_multiple(Config) -> doc("Streamed body via multiple calls."), {200, _, <<"Hello world!">>} = do_get("/resp/stream_body_content_length/multiple", Config), |