HttpRequest req = HttpRequest.newBuilder(URI.create(uri))
.PUT(BodyPublishers.ofString(SIMPLE_STRING))
.build();
HttpResponse<InputStream> response = client.send(req, BodyHandlers.ofInputStream()); byte[] body = response.body().readAllBytes();
assertEquals(body.length, 0);
} // We have created many clients here. Try to speed up their release. if (!sameClient) System.gc();
}
HttpRequest req = HttpRequest.newBuilder(URI.create(uri))
.PUT(BodyPublishers.ofString(SIMPLE_STRING))
.build();
HttpResponse<byte[]> response = client.send(req,
BodyHandlers.buffering(BodyHandlers.ofByteArray(), 1024)); byte[] body = response.body();
assertEquals(body.length, 0);
} // We have created many clients here. Try to speed up their release. if (!sameClient) System.gc();
}
HttpRequest req = HttpRequest.newBuilder(URI.create(uri))
.PUT(BodyPublishers.ofString(SIMPLE_STRING))
.build();
Object obj = new Object();
HttpResponse<Object> response = client.send(req, BodyHandlers.replacing(obj));
assertEquals(response.body(), obj);
} // We have created many clients here. Try to speed up their release. if (!sameClient) System.gc();
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet am 2026-06-10)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.