We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3cb8b9 commit fb2b898Copy full SHA for fb2b898
src/main/java/spp/demo/command/ViewTraces.java
@@ -28,14 +28,15 @@ public class ViewTraces {
28
*/
29
@Get("/view-traces")
30
public HttpResponse<Void> entryEndpoint() throws Exception {
31
-// try (HttpClient client = HttpClient.create(new URL("http://localhost:8080"))) {
32
-// client.toBlocking().retrieve("/command/view-traces/exit");
33
-// }
34
- return HttpResponse.ok();
+ try (HttpClient client = HttpClient.create(new URL("http://localhost:8080"))) {
+ return client.toBlocking().exchange("/command/view-traces/exit");
+ } catch (Exception e) {
+ return HttpResponse.serverError();
35
+ }
36
}
37
38
@Get("/view-traces/exit")
- public HttpResponse<String> exitEndpoint() {
39
- return HttpResponse.ok("Success");
+ public HttpResponse<Void> exitEndpoint() {
40
+ return HttpResponse.ok();
41
42
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments