@Test public void get() throws Exception { assertEquals(lobby, controller.get().toCompletableFuture().get()); }
public CompletionStage<Lobby> get() { final HttpRequest request = HttpRequest.create() .withUri(client.getBaseUri().addPathSegment("lobbies").addPathSegment(id)) .withMethod(HttpMethods.GET); return client.http().singleRequest(request, client.materializer()) .thenCompose(res -> Jackson.unmarshaller(mapper, Lobby.class) .unmarshall(res.entity(), client.materializer().executionContext(), client.materializer()) ); }
LobbyController { public CompletionStage<Lobby> get() { final HttpRequest request = HttpRequest.create() .withUri(client.getBaseUri().addPathSegment("lobbies").addPathSegment(id)) .withMethod(HttpMethods.GET); return client.http().singleRequest(request, client.materializer()) .thenCompose(res -> Jackson.unmarshaller(mapper, Lobby.class) .unmarshall(res.entity(), client.materializer().executionContext(), client.materializer()) ); } }
LobbyController { public CompletionStage<Lobby> get() { final HttpRequest request = HttpRequest.create() .withUri(client.getBaseUri().addPathSegment("lobbies").addPathSegment(id)) .withMethod(HttpMethods.GET); return client.http().singleRequest(request, client.materializer()) .thenCompose(res -> Jackson.unmarshaller(mapper, Lobby.class) .unmarshall(res.entity(), client.materializer().executionContext(), client.materializer()) ); } LobbyController(Client client, String id);  LobbyController(Client client, ObjectMapper mapper, String id); }
LobbyController { public CompletionStage<Lobby> get() { final HttpRequest request = HttpRequest.create() .withUri(client.getBaseUri().addPathSegment("lobbies").addPathSegment(id)) .withMethod(HttpMethods.GET); return client.http().singleRequest(request, client.materializer()) .thenCompose(res -> Jackson.unmarshaller(mapper, Lobby.class) .unmarshall(res.entity(), client.materializer().executionContext(), client.materializer()) ); } LobbyController(Client client, String id);  LobbyController(Client client, ObjectMapper mapper, String id); AuthorizedLobbyController authorize(Credentials credentials); CompletionStage<Lobby> get(); Flow<LobbyInboundMessage, LobbyOutboundMessage,
            CompletionStage<WebSocketUpgradeResponse>> feed(); Pair<CompletionStage<WebSocketUpgradeResponse>, CompletionStage<Done>> feed(
            Flow<LobbyOutboundMessage, LobbyInboundMessage, CompletionStage<Done>> handler); }
LobbyController { public CompletionStage<Lobby> get() { final HttpRequest request = HttpRequest.create() .withUri(client.getBaseUri().addPathSegment("lobbies").addPathSegment(id)) .withMethod(HttpMethods.GET); return client.http().singleRequest(request, client.materializer()) .thenCompose(res -> Jackson.unmarshaller(mapper, Lobby.class) .unmarshall(res.entity(), client.materializer().executionContext(), client.materializer()) ); } LobbyController(Client client, String id);  LobbyController(Client client, ObjectMapper mapper, String id); AuthorizedLobbyController authorize(Credentials credentials); CompletionStage<Lobby> get(); Flow<LobbyInboundMessage, LobbyOutboundMessage,
            CompletionStage<WebSocketUpgradeResponse>> feed(); Pair<CompletionStage<WebSocketUpgradeResponse>, CompletionStage<Done>> feed(
            Flow<LobbyOutboundMessage, LobbyInboundMessage, CompletionStage<Done>> handler);  }