oli-d / nova

Java libraries for rapid (micro) service development

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't get request stream on HTTP adapter for root endpoint

oli-d opened this issue · comments

commented

Registering for incoming HTTP requests on the root path, does not seem to work

timeTeller.http().requests("/").subscribe(rpc -> {
	rpc.complete("Welcome!");
});

Trying to send a request to that endpoint results in a 404

commented

Problem appeared because the HttpServer instance was manually created using the following code:

HttpServer.createSimpleServer("/", 7777);

Using Nova config or Novas Factory (HttpServerFactory.serverFor(httpServerConfiguration)) works properly