Add support for server-side events and tests

User can POST to web endpoint in SSE style, i.e:

HTTP/1.1
Content-Type: text/event-stream

data:foo

data:bar

Will be converted to a Flux with values foo and bar
This commit is contained in:
Dave Syer
2017-01-06 12:40:46 +00:00
parent 78d71651da
commit 4ad01be090
8 changed files with 228 additions and 10 deletions

View File

@@ -38,7 +38,8 @@ public class FunctionExtractingFunctionCatalogIntegrationTests {
public static void open() {
port = SocketUtils.findAvailableTcpPort();
// System.setProperty("debug", "true");
context = new ApplicationRunner().start("--server.port=" + port);
context = new ApplicationRunner().start("--server.port=" + port,
"--spring.cloud.stream.enabled=false");
}
@AfterClass